Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 612 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 612 Bytes

##Todo API

1st Job, rename the dotenv file

mv dotenv .env

Build the release api

cargo check && cargo build --release

Finally bring up the API

docker-compose up -d

Future update: Move the build process into a disposible docker layer reducing the whole project lauch into a single docker-compose command.

Test the api:

curl http://localhost:8080/
curl http://localhost:8080/todos/1/items

If you do this twice, you will see that it succeeds first time, and fails the 2nd as it is already present.

curl -X PUT http://localhost:8080/todos/2/3