summaryrefslogtreecommitdiff
path: root/procurement/api.py
AgeCommit message (Collapse)Author
2018-10-21Add view suppliers view and suppliers API endpointKyle McFarland
This adds a simple view (mostly cribbed from the component view but without the database stats) to view details for a given supplier, currently lists the components they supply and name/email address pairs for representatives however there's room to add fields for other representative contact and company information as well. On the API side this adds 3 endpoints: * api/suppliers: returns a list of all suppliers and their representatives * api/suppliers/<id>: returns a supplier object containing the representatives for the given supplier * api/suppliers/<id>/components: returns a supplier object containing a list of components supplied by the given supplier This also contains minor documentation and base template changes, fixing the navigation menu to use class="active" on the currently selected page (previously didn't work due to page_name capitalization)
2018-10-04Initial commit of the coding assignment base projectworkmai