End Points

  • List/Filter
  • Create
  • View
  • Update

List / Filter

URL: /api/json/items/
Method: GET

Arguments (optional)

cURL

curl https://mobile.quickswipe.com/api/json/items/?token=abcde

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8


Create

URL: /api/json/items/
Method: POST

Arguments

cURL

curl https://mobile.quickswipe.com/api/json/items/?token=abcde \\ \-F "name=A New Item" \\ \-F "price=3.99" \\ \-F "tax\_rate\_id=1" \\ \-F "category\_ids=1,2" \\ \-F "[email protected]"

Response

HTTP/1.1 201 Created Location: /api/json/items/1/
Content-Type: application/json; charset=UTF-8


View

URL: /api/json/items/:canonical_id/
Method: GET

Arguments

id: integer (optional) used to retrieve the item by id instead of canonical_id

cURL

curl https://mobile.quickswipe.com/api/json/items/2/?token=abcde

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8


Update

URL: /api/json/items/1/ Method: POST

Arguments

cURL

curl https://mobile.quickswipe.com/api/json/items/1/?token=abcde \\ \-d "name=My EBook"

Response

HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8



Did this page help you?