osu-tournament-rating / otr-api

API powering osu! Tournament Rating
https://otr.stagec.xyz/
GNU General Public License v3.0
8 stars 5 forks source link

Create a `POST`, `PATCH`, and `DELETE` endpoint for each admin note entity and establish access layers #379

Closed myssto closed 1 month ago

myssto commented 2 months ago

Depends on #378

Admin notes need API routes for CRUD actions. They should be routed like:

POST /{entity}/{id}/notes GET /{entity}/{id}/notes PATCH /{entity}/{id}/notes/{noteId} DELETE /{entity}/{id}/notes/{noteId}

Admin notes should be included on the entity's existing DTO for admin users only.

Tasks

Implement the four endpoints (and AdminNote repository / service layers) for these entities:

Base classes

hburn7 commented 1 month ago

Removed OAuthClient from the scope of this issue as it is not particularly relevant right now.

hburn7 commented 1 month ago

Closed once #456, #457, #458, and #459 are merged.