Get a todo API - Merevoli-DatLuu/entrace_test_to_do_api GitHub Wiki

/todo/<pk:int> GET - Lấy thông tin một record todo

HTTP/1.1 GET /api/v1/todo/<pk:int>

  • Permission: everyone
  • Require Logged In: true

Parameter:

Field Method Type Description Required

Success 200:

Field Type Description
status string Trạng thái
message string Thông báo chi tiết
data json Thông tin todo vừa truy xuất

Example:

{
    "status": "success",
    "message": "get a todo succesfully",
    "data": {
        "id": 1,
        "name": "todo 1",
        "description": "description of todo 1",
        "date_of_completion": "2021-12-30T12:30:00Z",
        "status": "NEW",
        "date_of_creation": "2021-07-01T13:23:19.008748Z",
        "date_of_modification": "2021-07-01T13:23:19.008748Z",
        "user_id": 2
    }
}
⚠️ **GitHub.com Fallback** ⚠️