The client should authenticated sucessfuly before accessing the endpoints below.
Adds a new report, can only be requested by a cluster head.
Authorization: "Bearer <id_token>"⠀
{
"title": "<self_explanatory>",
"date": "<date_in_yyyy-mm-dd_format>",
"venue": "<self_explanatory>",
"report": "<report_text>",
}
Returns the newly created response, id is an integer.
{
"id": 1,
"title": "<self_explanatory>",
"date": "<date_in_yyyy-mm-dd_format>",
"venue": "<self_explanatory>",
"report": "<report_text>",
"report_date": "<date_report_was_added_in_yyyy-mm-dd_format>",
"submitted_by": "<user_details>",
}
Returns all reports, only available of the team lead.
Authorization: "Bearer <id_token>"⠀
Returns an array of report with each elemnts has following schema:
{
"id": 1,
"title": "<self_explanatory>",
"date": "<date_in_yyyy-mm-dd_format>",
"venue": "<self_explanatory>",
"report": "<report_text>",
"report_date": "<date_report_was_added_in_yyyy-mm-dd_format>",
"submitted_by": "<user_details>",
}