drf_iplan is the DRF APIs for the iplan
project.
$ pip install djangorestframework
- /people - list the
Person
model instances, connected with aUser
- /tasks - list all
Task
model instances - /tasks/people/pk - list the
Task
model instances, connected with aPerson
based on pk - /meetings - list all
Meeting
model instances - /meetings/people/pk - list the
Meeting
model instances, connected with aPerson
based on pk
- Create a
User
. (currently disabled) - Login as
User
. - Create a
Person
associated withUser
. - Create a
Task
associated withPerson
. - Create a
Meeting
associated withPerson
.
- To list all
User
s, or create a newUser
, use/users
.
This can only be done once logged in.
- To update/delete a
User
, use/users/<pk>
wherepk
is 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
Person
s (people), or create aPerson
, use/people
. - To update/delete a particular
Person
, use/people/<pk>
wherepk
is the id of thePerson
.
A Task
is associated with a Person
.
- To create/update/delete a
Task
requires logging in as a validUser
who is associated with aPerson
. - To create a new
Task
for anyPerson
, use/tasks
. - To list
Task
s associated with aPerson
, use/tasks/people/<pk>
wherepk
is the id of thePerson
. - To update/delete a
Task
use/tasks/<pk>
wherepk
is theTask
id, however, only the owner of the task who is thePerson
associated with theUser
has access to this operation.
A Meeting
is associated with a Person
.
- To create/update/delete a
Meeting
requires logging in as a validUser
who is associated with aPerson
. - To create a new
Meeting
for anyPerson
, use/meetings
. - To list
Meeting
s associated with aPerson
, use/meetings/people/<pk>
wherepk
is the id of thePerson
. - To update/delete a
Meeting
use/meetings/<pk>
wherepk
is theMeeting
id, however, only the creator of the task who is thePerson
associated with theUser
has access to this operation.