Categories

Endpoints

  • List
  • Create
  • View
  • Update
  • Delete

List

URL: /api/json/categories/
Method: GET

Arguments (optional)

362

cURL

curl https://mobile.quickswipe.com/api/json/categories/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e

Response

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

400

Create

URL: /api/json/categories/
Method: POST

Arguments

178

cURL

curl https://mobile.quickswipe.com/api/json/categories/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e \\ \-F "name=Shoes" \\ \-F "[email protected]"

Response

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

400

View

URL: /api/json/categories/1/
Method: GET

cURL

curl https://mobile.quickswipe.com/api/json/categories/1/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e

Response

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

368

Update

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

cURL

curl https://mobile.quickswipe.com/api/json/categories/1/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e \\ \-F "name=Shoes" \\ \-F "photo=@file"

Response

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

368

Delete

URL: /api/json/categories/1/
Method: DELETE

cURL

curl https://mobile.quickswipe.com/api/json/categories/1/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e \\ -X DELETE


Response

HTTP/1.1 204 No Content