This Spring Boot application provides an API for performing CRUD operations on superheroes. It allows querying, creating, updating, and deleting superheroes.
- Java (latest LTS version)
- Maven
- Spring Boot
- Git
mvn spring-boot:run
The application will be available at http://localhost:8082.
GET /api/superheroes/paged?page=<PAGE_NUMBER>&size=<PAGE_SIZE>
GET /api/superheroes/{id}
GET /api/superheroes/search?name=<SUPERHERO_NAME>
POST /api/superheroes
{
"id": <ID>,
"name": "<SUPERHERO_NAME>"
}
PUT /api/superheroes/{id}
"<NEW_NAME>"
DELETE /api/superheroes/{id}
The application includes unit tests for at least one service. You can run the tests with the following command:
mvn test