Items
End Points
- List/Filter
- Create
- View
- Update
List / Filter
URL: /api/json/items/
Method: GET
Arguments (optional)
![itemslistargs.jpeg 361](https://files.readme.io/6b4c509-itemslistargs.jpeg)
cURL
curl https://mobile.quickswipe.com/api/json/items/?token=abcde
Response
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
![itemsresponse.jpeg 541](https://files.readme.io/43fd555-itemsresponse.jpeg)
Create
URL: /api/json/items/
Method: POST
Arguments
![itemscreateargs.jpeg 294](https://files.readme.io/0f52425-itemscreateargs.jpeg)
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
![itemscreateresp.jpeg 495](https://files.readme.io/f78701f-itemscreateresp.jpeg)
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
![itemsviewresp.jpeg 488](https://files.readme.io/a421715-itemsviewresp.jpeg)
Update
URL: /api/json/items/1/ Method: POST
Arguments
![itemsupdateargs.jpeg 217](https://files.readme.io/b833ff7-itemsupdateargs.jpeg)
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
![itemscreateresp.jpeg 495](https://files.readme.io/375616a-itemscreateresp.jpeg)
Updated almost 3 years ago