feat: Adding notifications endpoint

This commit is contained in:
Josepablo C
2024-08-09 21:16:24 -06:00
parent 288fdc10a7
commit 9b24704f76
9 changed files with 137 additions and 3 deletions

View File

@@ -391,6 +391,15 @@ This endpoint is part of /loads endpoint
- `GET /loads/find?$sort[createdAt]=-1&load_status=Loading`: Get loads with status "Loading" sorted by createdAt.
### /notifications
- `GET /` : Get list of latest notifications:
- `DELETE /:id` : Delete a single notification.
In order to delete a list of notifications use the following query:
`DELETE ?list[0]=66b6d50ce91a3a5b96686863&list[1]=66b6d50ce91a3a5b96686863&list[2]=66b6d50cf193e37bb1dd913d`
### /proposals
- `GET /find` : Find a list of elements with any of the following fields: