Techonologies • Features • Author Contact • License
- Back-end
- Java 11
- Spring Boot
- Spring Data
- Cassandra
- Kafka
- Lombok
- Maven
- Slf4j
- JUnit 5
1 - Find Order by Id
Example:
Request:
GET /order/v1/{orderId} HTTP/1.1
Path Parameter: Order id to find
Success:
HTTP/1.1 200 OK
Content-Type: application/json
{
"title": "Big Mac",
"description": "Lanche do McDonalds :)"
}
2 - Find All Orders
Example:
Request:
GET /order/v1 HTTP/1.1
Success:
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "39d9a682-0ecb-41fd-b38c-3f2469a028d0",
"title": "Big Mac",
"description": "Lanche do McDonalds :)"
},
{
"id": "6a78e09b-5e86-4970-bc76-ecec06a95107",
"title": "Milk Shake",
"description": "Bem gelado!"
}
]
3 - Creating New Order (Sending to Kafka Queue)
Example:
Request:
POST /order/v1 HTTP/1.1
Content-Type: application/json
Body:
{
"title": "Big Mac",
"description": "Lanche do McDonalds :)"
}
Success:
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "18b57f64-2654-4084-97e9-d4b565e4abb2",
"title": "Big Mac",
"description": "Lanche do McDonalds :)"
}
- Website at luccas.dev
- E-Mail: [email protected]
- Copyright © LuccasDev.