This is a simple project with a challenge for Backend developers.
- Creating API REST (Spring Web)
- Create a database (Spring Data)
- JUnit
- H2
- Swagger
- logback
- Lombok
Goals:
-
Create the project using Java 11 and Spring Boot 2
-
Create the user entity with (name, surname, birthdate)
-
Build a REST API
- Get all users
- Get user by ID
- Create new user
- Modify user
- Delete user
-
The API should receive and return values in JSON
-
Create the database using H2
-
Create a JUnit to test your controller
Goals: #Not mandatory:
- Use Swagger UI with Springdoc to document your service
- configure your logs with logback
- Use Lombok to reduce manual coding
Swagger:
- Swagger documentation: http://localhost:8080/v3/api-docs
- Swagger UI: http://localhost:8080/swagger-ui.html
H2 Database:
- To access the H2 database: http://localhost:8080/h2-console
- JDBC URL: jdbc:h2:mem:cronos-challenge
- Username: ch
- Password: