Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 583 Bytes

README.md

File metadata and controls

43 lines (32 loc) · 583 Bytes

Checks-api using APIView only

Endpoints

GET, POST.

~/api/check/ - get list or create check.
~/api/printer/ - get list or create printer.
GET, PUT, DELETE.

~/api/check/<int:pk>/ - get, update or delete check.
~/api/printer/<int:pk>/ - get, update or delete printer.
POST.

~/api/check/create/ - create check based on printers.
POST DATA.

{
  "point_id": 1,
  "order": {
    "order_id": 2,
    "item": "Milk",
    "quantity": 2,
    "price": 10.99
  }
}
GET, PUT.

~/api/check/<int:pk>/update/ - print check and update status.