DT Backend WebDev Challenges
A brief description of the API endpoints.
Base URL: /api/v3/app/events/
Install the requirements with pip
pip install -r requirements.txt
python3 manage.py runserver
GET /api/v3/app/events/{{event_id}}
Parameter |
Type |
Description |
event_id |
integer |
Required. Id of event to fetch |
PUT /api/v3/app/events/{{event_id}}
Parameter |
Type |
Description |
event_id |
integer |
Required. Id of event to Update |
DELETE /api/v3/app/events/{{event_id}}
Parameter |
Type |
Description |
event_id |
integer |
Required. Id of event to fetch |
Get Latest Events With Pagination
GET /api/v3/app/events/?page=2&limit=2&type=latest
Parameter |
Type |
Description |
page |
integer |
Required. Page number to fetch |
limit |
integer |
Required. Number of events to fetch per page |