A Spring Boot microservice for managing clients.
GET /api/v1/clients
: Retrieve all clientsPOST /api/v1/clients
: Create a new clientPUT /api/v1/clients/{id}
: Update an existing clientDELETE /api/v1/clients/{id}
: Delete a client
All endpoints require Basic Authentication.
- Spring Boot
- JDK 11
- Maven
- H2 Database (in-memory)
- Spring Security (Basic Authentication)
Implemented using:
- JDBCTemplate
- JPA Repository
- Native queries
JUnit tests are implemented for all endpoints.
Swagger UI is available at:
http://localhost:8080/swagger-ui/
To access, use the same Basic Authentication credentials as for the API endpoints.
Basic Authentication is required for all endpoints and Swagger UI.
Credentials:
- Username: admin
- Password: admin
The API supports multiple languages. It accepts both Portuguese (pt) and English (en).
To specify the language, use the Accept-Language
header in your requests:
- For English:
Accept-Language: en-US
- For Portuguese:
Accept-Language: pt-BR
mvn clean install