Block a user
API (notes) : GET /ajustements/{numEtud}/{idUE}
WIP: feat(defaults/withRules): add permission rule wrapper
If I get it, every time we implement an API, we need to precise the require rules ? So like this : `ts export const handler = { POST: withRules(["student_write"])(async (req, ctx) => { …
PMPR-38 : POST /ue-modules - associer un module à une UE
Seems good but :
- You don't seem to verify the type of the const
- This branch also contains the GET request. Maybe close #118 ?
PMPR-36 : PUT and DELETE /ues/{idUE}
Instead of having 3 different pull request, maybe close #120 and #121 and rename this one to reference the GET and PUT request ?
PMPR-35 : PUT /ues/{idUE} - modifier une UE
Same as PMPR-36 : The PUT route seems correct, but this branch also includes GET and DELETE routes.
PMPR-36 : PUT and DELETE /ues/{idUE}
The DELETE route seems correct, but this branch also includes GET and PUT routes.
PMPR-43 : POST /notes - créer une note
Seems good for me. You don't verify if note is a float / numEtud is a number/ idModule is a string
feat(api): implement single ajustement retrieval endpoint
feat(api): implement ajustements list and create endpoints