Develop a simple backend for a note-taking application using either Micronaut, Spring-boot, or something similar.
Create a RESTful API that allows users to create, retrieve, update, and delete notes. Each note can consist of a title and a body.
- API Endpoints: · POST /notes: Create a new note. · GET /notes: Retrieve all notes. · GET /notes/:id: Retrieve a specific note by ID. · PUT /notes/:id: Update a specific note. · DELETE /notes/:id: Delete a specific note.
- Data Storage: Use an in-memory array or a simple file-based solution to store notes.
- Data Validation: Validate input data for creating and updating notes.
- Error Handling: Basic error handling for common scenarios (e.g., note not found).
- Clone repo into your local
- Navigate to folder containing pom.xml
- type command in terminal: mvn spring-boot:run
Pre-requisite: Postman or any similar application
URL starts with "localhost:8080" as port 8080 is the default Refer to images below for sample payload:
- Sample image below for POST /notes -- adding a new note in the list:

- Sample image below for GET /notes -- getting all the notes:

- Sample image below for PUT /notes/id -- updating a specific note:

- Sample image below for GET /notes/id -- retrieving a specific note:
5. Sample image below for DELETE /notes/id -- deleting a specific note:

