- JDK 8
- Maven 3
- Clone :
https://github.com/rayansalewski/tokio-test-interview.git
- Go to the folder
tokio-test
and execute:mvn spring-boot:run
Command | URI | JSON |
---|---|---|
List all Customer |
GET http://localhost:8080/customers | NA |
List Customer by id |
GET http://localhost:8080/customers/{id} | NA |
Insert Customer |
POST http://localhost:8080/customers | { "name": "String","email":"String" } |
Delete Customer |
DELETE http://localhost:8080/customers/{id} | NA |
Update Customer |
PUT http://localhost:8080/customers/{id} | { "name": "String","email":"String" } |
Add Address Custumer |
POST http://localhost:8080/customers/{id}/address | { "street" : "String", "number" : int, "state" : "String" } |