nesh170 / asap-inventory-system

This is a concept inventory system for ECE458. It is built by ASAPsolutions
1 stars 0 forks source link

Cart fixes #133

Closed ankitkayastha closed 7 years ago

ankitkayastha commented 7 years ago

Updated JSON for Cancelling a Request:

Request Type: PATCH Request Body (comment is optional): { "comment":"want to cancel my request" }

Response Body: { "id": 2, "owner": "admin", "status": "cancelled", "reason": "submitting cart", "requests": [ { "id": 3, "item": { "id": 1, "name": "resistor", "quantity": 27 }, "quantity": 5, "shopping_cart_id": 2 } ], "timestamp": "2017-02-19T21:18:17.061370Z", "admin_timestamp": "2017-02-19T21:18:17.060867Z", "admin_comment": "approval reason is : testing approve this should work", "admin": "admin" }