Technologies • Getting Started • API Endpoints • Collaborators • Contribute
A Rest API that registers products with CRUD operations.
- Java
- PostgresSQL
- Spring Boot
- JPA
- JUnit 5
- Docker
git clone https://github.com/GuilhermeLuan/RestfullAPI-Spring
cd RestfullAPI-Sping
docker compose up
./mvnw clean install
./mvnw spring-boot:run
route | description |
---|---|
GET /api/v1/products | retrieves a list of all products. |
GET /api/v1/products/{UUID} | retrieves a specific product by its unique identifier (UUID). |
PUT /api/v1/products | modifies a specific product by its unique identifier on body (UUID). |
POST /api/v1/products | creates a product in the database. |
DELETE /api/v1/products/{UUID} | deletes a specific product by its unique identifier (UUID). |
RESPONSE
[
{
"idProduct": "ee2737a5-d773-4106-ab60-c3ffbe95ec0e",
"name": "Iphone 14 Pro",
"valueProduct": 5000
}
]
RESPONSE
[
{
"idProduct": "ee2737a5-d773-4106-ab60-c3ffbe95ec0e",
"name": "Iphone 14 Pro",
"valueProduct": 5000
}
]
REQUEST
{
"idProduct": "ee2737a5-d773-4106-ab60-c3ffbe95ec0e",
"name": "Iphone 14 Pro",
"valueProduct": 5000
}
RESPONSE
{
"idProduct": "ee2737a5-d773-4106-ab60-c3ffbe95ec0e",
"name": "Iphone 14 Pro",
"valueProduct": 5000
}
REQUEST
{
"name": "Iphone 14",
"valueProduct": 5000
}
RESPONSE
{
"idProduct": "ee2737a5-d773-4106-ab60-c3ffbe95ec0e",
"name": "Iphone 14",
"valueProduct": 5000
}
RESPONSE
"Product deleted successfully"
Special thank you for all people that contributed for this project.
Guilherme Luan |
git clone https://github.com/GuilhermeLuan/RestfullAPI-Spring
git checkout -b feature/NAME
- Follow commit patterns
- Open a Pull Request explaining the problem solved or feature made, if exists, append screenshot of visual modifications and wait for the review!