Categories
Endpoints
- List
- Create
- View
- Update
- Delete
List
URL: /api/json/categories/
Method: GET
Arguments (optional)
![categorylistargs.jpeg 362](https://files.readme.io/91063a7-categorylistargs.jpeg)
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
![categorieslistresp.jpeg 400](https://files.readme.io/a1120f3-categorieslistresp.jpeg)
Create
URL: /api/json/categories/
Method: POST
Arguments
![categoriescreateargs.jpeg 178](https://files.readme.io/8a84415-categoriescreateargs.jpeg)
cURL
curl https://mobile.quickswipe.com/api/json/categories/?token=516c579c-bdf8-4a6a-a5e4- 46030abbf85e \\ \-F "name=Shoes" \\ \-F "photo=@file.jpg"
Response
HTTP/1.1 201 Created
Content-Type: application/json; charset=UTF-8
Location: /api/json/categories/1/
![categorieslistresp.jpeg 400](https://files.readme.io/7b607b7-categorieslistresp.jpeg)
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
![categoriesupdateresp.jpeg 368](https://files.readme.io/191d6c5-categoriesupdateresp.jpeg)
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
![categoriesupdateresp.jpeg 368](https://files.readme.io/3e707ec-categoriesupdateresp.jpeg)
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
Updated over 3 years ago