API Resource - up1/soa_group2 GitHub Wiki
API Resource
Sale
| Resource | HTTP Method | Description |
|---|---|---|
| /sale | GET | List items that selling |
| /sale/{id} | GET | Get selling item information |
| /sale/category/{categoryName} | GET | Get a list of products base on category |
| /cart | POST | Create new cart |
| /cart/{id} | POST | Add product to cart |
| /cart/{id} | GET | Get cart information |
| /cart/{id} | PUT | Update item in cart |
| /cart/{id} | DELETE | Remove product from cart |
| /cart/{id}/{productId} | PATCH | Change Amount of Item In cart |
| /buyhistory | POST | Create a buy history |
| /buyhistory/{memberId} | GET | Get a list of selected member's buy history |
| /buyhistory/{memberId}/{poNumber} | GET | Get an information of selected purchase order |
| /salehistory | POST | Create salehistory |
| /salehistory/member/{owner} | GET | Get a sale history of selected member |
| /salehistory/product/{productId} | GET | Get a product's sale history |
Stock
| Resource | HTTP Method | Description |
|---|---|---|
| /product | GET | Get a list products in stock |
| /product | POST | Create additional product in stock |
| /product/{id} | GET | Get stocked product information |
| /product/{id} | PUT | Update information of stocked product |
| /product/{id} | DELETE | Remove a selected product from stock |
| /product/category/{categoryName} | GET | Get a list of products base on category |
| /product/image | POST | Add image in stock |
| /product/image/{productId} | GET | Get image of product |
| /category | POST | Create additional product's category |
| /category | GET | Get a list of product's categories |
| /category/{name} | GET | Get a category's information |
| /category/{name} | PUT | Modify a selected category's information |
| /category/{name} | DELETE | Remove a selected category |
Billing
| Resource | HTTP Method | Description |
|---|---|---|
| /purchaseorder | GET | Get a list of purchase orders. |
| /purchaseorder/{id} | GET | Get a selected purchase order's information |
| /purchaseorder/{id} | PUT | Update a selected purchase order |
| /purchaseorder/{id}/cancel | PATCH | Cancel a selected purchase order |
| /purchaseorder | POST | Create new a purchase order from a given cart |
| /payslip/unpaid | GET | Get list of non-pays pay slip |
| /payslip/paid | GET | Get list of paid pays slip |
| /payslip/{poNumber} | GET | Get pay slip file |
| /payslip/outoftime | GET | Get a list of pay slip that out of time |
| /payslip/paid/{poNumber} | PATCH | Paid the pay slip |
Member
| Resource | HTTP Method | Description |
|---|---|---|
| /member/signup | POST | Create new member |
| /member/signin | POST | Login |
| /member/profile | GET | Get member profile |
| /member/profile | PUT | Update member profile |