[ ] Figure out how we want to expose the related Client for a Project in the /projects/ endpoint. For instance, do we want to embed the information inside each project, or do we want it to be a primary key that needs to be looked up at a /clients/{pk} endpoint?
[ ] Figure out how we want to represent our model fields that have choices options. Currently, for example, Project.status is an integer that corresponds to tentative/active/paused/complete. But we might instead want this to be an actual string describing the choice.
[ ] Figure out what fields we want to expose on Project. For example, do we want to expose mb_number? Alternatively, do we want to expose only a strict subset of fields by default, but show additional fields if they're specified as querystring arguments?
This attempts to add a Django REST framework-powered API at
/api/
.To do:
Client
endpoint.Client
for aProject
in the/projects/
endpoint. For instance, do we want to embed the information inside each project, or do we want it to be a primary key that needs to be looked up at a/clients/{pk}
endpoint?choices
options. Currently, for example,Project.status
is an integer that corresponds to tentative/active/paused/complete. But we might instead want this to be an actual string describing the choice.Project
. For example, do we want to exposemb_number
? Alternatively, do we want to expose only a strict subset of fields by default, but show additional fields if they're specified as querystring arguments?