These examples were taken from projects mainly using JSON responses are often similar to the way in which DRF makes responses.
Open endpoints require no Authentication.
- User Login :
POST /api/sumhr/login/
Closed endpoints require a valid Token to be included in the header of the request. A Token can be acquired from the Login view above.
Endpoints for viewing and manipulating the Accounts that the Authenticated User has permissions to access.
- Create Attendance Cycle :
POST /attendance/settings/createattendancecycle/
- Edit Attendance Cycle :
GET /attendance/settings/editattendancecycle/8/
- Delete Attendance Cycle :
DELETE /attendance/settings/deleteattendancecycle/8/