Skip to content

About

A simple REST API for creating, reading, updating, and deleting notes, built with Java, Spring Boot, Maven, and JUnit 5.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

Project - Notes REST API

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

Features

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

Notes

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

Run Locally

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:run

You can test the API using IntelliJ’s HTTP client, Postman, or curl.

Example request:

GET http://localhost:8080/notes

Tech Stack

Language: Java

Framework: Spring Boot

Testing: JUnit 5

Build Tool: Maven

IDE: IntelliJ IDEA Ultimate

Version Control: Git + GitHub

About

A simple REST API for creating, reading, updating, and deleting notes, built with Java, Spring Boot, Maven, and JUnit 5.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages