drf_iplan is the DRF APIs for the iplan project.
$ pip install djangorestframework
- /people - list the
Personmodel instances, connected with aUser - /tasks - list all
Taskmodel instances - /tasks/people/pk - list the
Taskmodel instances, connected with aPersonbased on pk - /meetings - list all
Meetingmodel instances - /meetings/people/pk - list the
Meetingmodel instances, connected with aPersonbased on pk
- Create a
User. (currently disabled) - Login as
User. - Create a
Personassociated withUser. - Create a
Taskassociated withPerson. - Create a
Meetingassociated withPerson.
- To list all
Users, or create a newUser, use/users.
This can only be done once logged in.
- To update/delete a
User, use/users/<pk>wherepkis the id of theUser.
A Person is associated with a Django User. To create/update/delete a Person requires logging in as a User.
- To list all
Persons (people), or create aPerson, use/people. - To update/delete a particular
Person, use/people/<pk>wherepkis the id of thePerson.
A Task is associated with a Person.
- To create/update/delete a
Taskrequires logging in as a validUserwho is associated with aPerson. - To create a new
Taskfor anyPerson, use/tasks. - To list
Tasks associated with aPerson, use/tasks/people/<pk>wherepkis the id of thePerson. - To update/delete a
Taskuse/tasks/<pk>wherepkis theTaskid, however, only the owner of the task who is thePersonassociated with theUserhas access to this operation.
A Meeting is associated with a Person.
- To create/update/delete a
Meetingrequires logging in as a validUserwho is associated with aPerson. - To create a new
Meetingfor anyPerson, use/meetings. - To list
Meetings associated with aPerson, use/meetings/people/<pk>wherepkis the id of thePerson. - To update/delete a
Meetinguse/meetings/<pk>wherepkis theMeetingid, however, only the creator of the task who is thePersonassociated with theUserhas access to this operation.