Get all products (limit = 30, page=1)
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/product_admin/products&limit=10&page=1
Response status: 302
Response:
Get product by ID
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/product_admin/products&id=40
Response status: 302
Response:
Update product quantity by ID
Method: PUT
URL: http://pruebastreebes.com/index.php?route=rest/product_admin/products&id=40
Request:
{
"quantity": 958
}
Response status: 302
Response:
Get product by ID after quantity update
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/product_admin/products&id=40
Response status: 302
Response:
Get categories
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/category_admin/category
Response status: 302
Response:
Get category by ID
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/category_admin/category&id=20
Response status: 302
Response:
Add new category
Method: POST
URL: http://pruebastreebes.com/index.php?route=rest/category_admin/category
Request:
{
"sort_order": "1",
"parent_id": "1",
"top": "1",
"column": "1",
"status": "1",
"category_store": [
0
],
"category_description": [
{
"language_id": 1,
"name": "Api demo category 7404",
"description": "desc",
"meta_title": "meta_title_7404",
"meta_description": "meta_description_7404",
"meta_keyword": "meta_keyword_7404"
}
]
}
Response status: 302
Response:
Get orders
Method: GET
URL: http://pruebastreebes.com/index.php?route=rest/order_admin/orders
Response status: 302
Response: