Skip to content

AAI-182 admin backend endpoints#20

Merged
marius-mather merged 37 commits into
mainfrom
admin-endpoints
Jun 2, 2025
Merged

AAI-182 admin backend endpoints#20
marius-mather merged 37 commits into
mainfrom
admin-endpoints

Conversation

@marius-mather

@marius-mather marius-mather commented May 26, 2025

Copy link
Copy Markdown
Collaborator

Description

AAI-182: implement admin endpoints for the AAI backend, as described in https://docs.google.com/document/d/1W3-7Hme08M-b4kwMvcQoUscznVNxtOldxuKYPPRhBFE/edit?tab=t.0#heading=h.yiv7256z72hs

Changes

Routes implemented:

  • /admin/users - get all users
  • /admin/users/{user_id} - get a single user
  • /admin/users/approved - get all users with approved services
  • /admin/users/pending - get all users with pending service requests
  • /admin/users/revoked - get all users with revoked services
  • /admin/users/{user_id}/services/{service_id}/approve - approve a service
  • /admin/users/{user_id}/services/{service_id}/revoke - revoke a service
  • /admin/users/{user_id}/services/{service_id}/resources/{resource_id}/approve - approve a resource

Checklist

  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit / integration tests that prove my fix is effective or that my feature works
  • I have run all tests locally and they pass
  • I have updated the documentation (if applicable)

How to Test Manually (if necessary)

Run uv run pytest

@marius-mather marius-mather changed the title WIP: admin endpoints AAI-182 admin backend endpoints May 29, 2025
@marius-mather marius-mather marked this pull request as ready for review June 2, 2025 01:19
amandazhuyilan
amandazhuyilan previously approved these changes Jun 2, 2025

@amandazhuyilan amandazhuyilan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks great - nick picks as usual...

Comment thread schemas/service.py Outdated
Comment thread schemas/service.py Outdated
@marius-mather marius-mather merged commit e863e08 into main Jun 2, 2025
1 check passed
@amandazhuyilan amandazhuyilan deleted the admin-endpoints branch June 19, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants