🧩 Microservice developed in Spring Boot, RabbitMQ, MongoDB and Docker
MIT License
Microservice developed to address the BTG Pactual challenge. The challenge involves creating a microservice that:
$ git clone https://github.com/Guilhermebit/btg-pactual-back-end-challenge.git
Install dependencies with Maven
Install docker: https://docs.docker.com/engine/install/
Run the following command:
./mvnw clean install
docker-compose up
guest
/guest
).To test the HTTP requests, you can use Postman. Download Postman here: https://www.postman.com/downloads/
GET /customers/{customerId}/orders
Response 200 (application/json)
Body
{
"data": [
{
"orderId": 1001,
"customerId": 1,
"total": 120.00
}
],
"pagination": {
"page": 0,
"pageSize": 10,
"totalElements": 1,
"totalPages": 1
}
}
If you encounter issues, consider the following: