pip install -r requirements.txt
python manage.py runserver
GET tasks/api
HTTP/1.1 200 OK
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
Content-Length: 2
[]
GET /tasks/api/id
HTTP 200 OK Allow: GET, PUT, DELETE, HEAD, OPTIONS Content-Type: application/json Vary: Accept
{ "title": "BBB", "is_completed": false, "created_at": "2022-09-08T20:50:31.811935Z", "last_updated": "2022-09-08T21:02:13.466054Z", "is_active": true }
GET tasks/api/1
HTTP 400 Bad Request Allow: GET, PUT, DELETE, HEAD, OPTIONS Content-Type: application/json Vary: Accept
{ "response": "Object with task id does not exists" }
PUT /tasks/api/7/
HTTP 200 OK Allow: GET, PUT, DELETE, HEAD, OPTIONS Content-Type: application/json Vary: Accept
{ "title": "BBB", "is_completed": false, "created_at": "2022-09-08T20:50:31.811935Z", "last_updated": "2022-09-08T21:02:13.466054Z", "is_active": true }
PUT /tasks/api/
HTTP 201 Created Allow: GET, POST, HEAD, OPTIONS Content-Type: application/json Vary: Accept
{ "title": "CCC", "is_completed": false, "created_at": "2022-09-08T21:05:53.773985Z", "last_updated": "2022-09-08T21:05:53.773401Z", "is_active": true }
DELETE tasks/api/id/
{ "response": "Object deleted!" }