-
- POST /api/v1/auth/register
- Register a new user. The request body should include 'username' and 'password'.
- POST /api/v1/auth/register
-
- POST /api/v1/auth/login
- Authenticate a user and return a JWT. The request body should include 'username' and 'password'.
- POST /api/v1/auth/login
-
- POST /api/v1/notes/notes
- Create a new note. The request body should include 'title' and 'content'.
- POST /api/v1/notes/notes
-
- GET /api/v1/notes/notes
- Retrieve all the notes for the authenticated user.
- GET /api/v1/notes/notes
-
- GET /api/v1/notes/notes/:id
- Retrieve a specific note by ID.
- GET /api/v1/notes/notes/:id
-
- PUT /api/v1/notes/notes/:id
- Update a specific note by ID. The request body can include 'title' and/or 'content'.
- PUT /api/v1/notes/notes/:id
-
- DELETE /api/v1/notes/notes/:id
- Delete a specific note by ID.
- DELETE /api/v1/notes/notes/:id