Team collaborative evaluation tracker.
{
"Authorization": "JWT <access_token>"
}
-
URL:
auth/jwt/create/
-
HTTP: POST
-
Login Required: False
Request Format:
{
"username": "test",
"password": "123456"
}
Response Format (use Access token):
{
"refresh": "...J0eXAiOiJKV1QiL...",
"access": "...J0eXAiOiJKV1QiL..."
}
-
URL:
auth/users/me/
-
HTTP: PATCH
-
Login Required: True
Request Format:
{
"first_name": "Brian", // Optional
"last_name": "Yin" // Optional
}
-
URL:
api/assigned_evals/
-
HTTP: POST
-
Login Required: True
Request Format:
{
"week": 1,
"content": "Hi there!",
"evaluated_user": 3
}
Response Format:
{
"week": 1,
"content": "Hi there!",
"evaluated_user": 3,
"completed": false
}
-
URL:
api/assigned_evals/?week=<int:week>
-
HTTP: GET
-
Login Required: True
Response Format:
[
{
"id": 9,
"week": 1,
"content": "sadasdasd",
"rating": 0,
"evaluated_user": {
"id": 3,
"username": "BBB",
"email": "",
"role": "backend developer",
"photo": "http://localhost:3000"
},
"created_at": "2021-12-04",
"completed": false,
"task_list": {
"id": 1,
"week": 1,
"created_at": "2021-12-04",
"tasks": [
{
"id": 1,
"content": "First task Item"
},
{
"id": 2,
"content": "Second task Item"
}
]
}
},
...
]
-
URL:
api/assigned_evals/<evaluation_pk>/
-
HTTP: PATCH
-
Login Required: True
Request Format:
{
"content": "Updated Content", // Optional
"rating": 9 // Optional
}
Response Format:
{
"content": "Updated Content",
"rating": 9,
"completed": true
}
-
URL:
api/received_evals/
-
HTTP: GET
-
Login Required: True
Response Format (GROUP BY task_list ORDER BY week DESC):
[
{
"id": 16,
"week": 3,
"created_at": "2021-12-04",
"evaluations": [
{
"content": "AAAAA",
"rating": 0,
"completed": false,
"evaluator": 4,
"created_at": "2021-12-04"
},
{
"content": "BBBBBB",
"rating": 0,
"completed": false,
"evaluator": 4,
"created_at": "2021-12-04"
},
{
"content": "CCCCCC",
"rating": 0,
"completed": false,
"evaluator": 4,
"created_at": "2021-12-04"
}
],
"tasks": [
{
"id": 8,
"content": "New Item 1",
"completed": false
},
{
"id": 9,
"content": "New Item 2",
"completed": false
},
{
"id": 10,
"content": "New Item 3",
"completed": false
}
]
},
...
]
-
URL:
api/task_items/
-
HTTP: POST
-
Login Required: True
Request Format:
{
"task_list": 1,
"content": "Hello there!"
}
Reponse Format:
{
"task_list": 1,
"content": "Hello there!"
}
-
URL:
api/task_items/<task_item_pk>/
-
HTTP: PATCH
-
Login Required: True
Request Format:
{
"content": "Modified task Item", // Optional
"completed": false // Optional
}
Response Format:
{
"id": 1,
"content": "Modified task Item",
"completed": false
}
-
URL:
api/task_items/<task_item_pk>/
-
HTTP: DELETE
-
Login Required: True
-
URL:
api/current_week/
-
HTTP: GET
-
Login Required: True
Response Format:
{
"week": 1
}