By: Alfredo Benites
Notes REST API is a backend application built with Java and Spring Boot that allows users to create, read, update, and delete (CRUD) notes through RESTful API endpoints.
The project also includes JUnit 5 tests to ensure core functionality works as expected.
Time spent: 4.5 hours spent in total
The following functionality is completed:
- User can view all notes using
GET /notes - User can add a new note using
POST /notes - User can update a note using
PUT /notes/{id} - User can delete a note using
DELETE /notes/{id} - Application tested with JUnit 5 for service logic
The following additional features are implemented:
- Clean architecture following Controller–Service–Model structure
- Easy to test and extend for future functionality
This was my first full Spring Boot project. I learned how to:
- Build REST APIs using Spring annotations (@RestController, @GetMapping, @PostMapping, @DeleteMapping, @PutMapping, @RequestBody, and @PathVariable)
- Write and run JUnit 5 tests for logic validation
- Use dependency injection with @Service
- Structure a professional backend project using Maven
Make sure you have Java 21 and Maven installed.
Then, clone the repository and run the app:
git clone https://github.com/AlfredoBenites/spring-notes-api.git
cd spring-notes-api
./mvnw spring-boot:runYou can test the API using IntelliJ’s HTTP client, Postman, or curl.
Example request:
GET http://localhost:8080/notes
Language: Java
Framework: Spring Boot
Testing: JUnit 5
Build Tool: Maven
IDE: IntelliJ IDEA Ultimate
Version Control: Git + GitHub