This is a RESTful API for managing notes.
- Returns all notes in the database.
- Response:
- Status: 200 OK
- Body:
HttpResponse<Note>
containing the list of notes.
- Creates a new note.
- Request body: JSON representation of a
Note
object. - Response:
- Status: 201 Created
- Location header: URL of the newly created note
- Body:
HttpResponse<Note>
containing the created note.
- Filters notes in the database by their level.
- Query parameter:
level
(required): The level to filter by (e.g., HIGH, MEDIUM, LOW).
- Response:
- Status: 200 OK
- Body:
HttpResponse<Note>
containing the filtered notes.
- Updates an existing note.
- Request body: JSON representation of a
Note
object. - Response:
- Status: 200 OK
- Body:
HttpResponse<Note>
containing the updated note.
- Deletes a note by its ID.
- Path parameter:
noteId
(required): The ID of the note to delete.
- Response:
- Status: 200 OK
- Body:
HttpResponse<Note>
containing the deleted note.
- Handles errors for invalid or unknown paths.
- Response:
- Status: 404 Not Found
- Body:
HttpResponse<?>
containing the error details.
- JDK 8 or higher
- Spring Boot
- Next.js
- Clone the repository.
- Build and run the project.
- Access the API endpoints using the provided URLs.
Ndeta Innocent