This is a sample project used only for recruitment purposes.
Download the repository to your computer
Open your terminal and run the following command on the project's root folder
./mvnw spring-boot:run
You should see a success message like this
Started PaymentsApiApplication in 5.196 seconds (JVM running for 5.684)
- The main operations are:
1: Registering a new Buyer: POST (http://localhost:9000/buyer)
Please, notice that for insertion purposes, the id is not required, for it is
auto-incremented in database.
{
"email": "[email protected]",
"cpf": "123123123123",
"nome": "buyer"
}
{
"name": "amazon"
}
{
"amount": "10000.00",
"paymentMethod":{
"method": "CREDIT_CARD",
"creditCard":{
"brand": "Master",
"holder":{
"name": "Bia",
"birthDate": "28-10-1994",
"documentNumber": "38129391293"
},
"cardNumber": "1111111111111215",
"expirationDate": "30-04-2018",
"cvv": "235"
}
},
"buyer":{
"id": "1"
},
"client":{
"id": "1"
}
}
{
"amount": "10000.00",
"paymentMethod":{
"method": "BOLETO"
},
"buyer":{
"id": "1"
},
"client":{
"id": "1"
}
}