The API to manage project ans tasks in Database
Notices: In this test code review task we assume, that there is already some authentication middleware layer. So all routes protected by some token-based authorization, etc
Retrieve project entity by ID
-
Parameters
- id: 1201 (number)
-
Response 200 (application/json)
{ "id": 1, "title": "Booking.com", "created_at": "2021-04-23T10:00:00+01" }
-
Response 404
Retrieve project tasks
-
Parameters
- id: 1201 (number)
- limit: 10 (Optional, default: 10)
- offset: 0 (Optional, default: 0)
-
Response 200 (application/json)
[ { "id": 1, "title": "Create UI mockups" }, { "id": 2, "title": "Implement login form" } ]
Create task for project
-
Parameters
- id: 1201 (number): ID of the project
-
Request
{ "title": "Implement API for hotels search" }
-
Response 201 (application/json)
-
Response 404