Projekt zaliczeniowy z przedmioty Tworzenie usług sieciowych
docker-compose up -d --build
backend/openapi.yml
curl --request POST
--url http://localhost:8000/rest-auth/login/
--header 'Content-Type: application/json'
--data '{"password": "todo","username": "todo"}'
curl --request POST
--url http://localhost:8000/category/
--header 'Authorization: Token {TOKEN}'
--header 'Content-Type: application/json'
--data '{"name": "test"}'
curl --request GET
--url http://localhost:8000/category/
--header 'Authorization: Token {TOKEN}' \
curl --request GET
--url http://localhost:8000/todo/
--header 'Authorization: Token {TOKEN}' \
curl --request GET
--url http://localhost:8000/todo/6
--header 'Authorization: Token {TOKEN}' \
curl --request POST
--url http://localhost:8000/todo/
--header 'Authorization: Token {TOKEN}'
--header 'Content-Type: application/json'
--data '{"title": "test", "category": 1, "content": "123"}'
curl --request PUT
--url http://localhost:8000/todo/18/
--header 'Authorization: Token {TOKEN}'
--header 'Content-Type: application/json'
--data '{"is_complete": true}'