Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 927 Bytes

File metadata and controls

36 lines (22 loc) · 927 Bytes

INE5653

How to

First, install it.

Currently, two languages are supported by the app: pt-BR(the default at .env) and en-US. In order to choose the language, you can change it at the .env file or pass it when running the app.

To run it, simply cargo run or APP_LANGUAGE=your_option cargo run. Then, to interact with the APIs, open another terminal session/tab/whatever and send requests to the app!

APIs

Add

curl -XPOST -H "Content-type: application/json" -d '{"day": 14, "month": 2, "year": 1862, "description": "The House of the Dead ", "value": "66666", "size": 368, "country": "BRA"}' 'localhost:6666/add'

Delete

curl -d '00000000-0000-0000-0000-000000000000' 'localhost:6666/delete' 

Get

curl -d '00000000-0000-0000-0000-000000000000' 'localhost:6666/get' 

List

curl localhost:6666/list