Get Categories
GET/api/product_categories
Get Categories
Request
Query Parameters
page integer
Example: 2
query string
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
meta
object
total numberrequired
per_page numberrequired
current_page numberrequired
last_page numberrequired
first_page numberrequired
first_page_url stringrequired
last_page_url stringrequired
next_page_url stringnullablerequired
previous_page_url stringnullablerequired
data
object[]
id string
name string
slug string
parent_id stringnullable
position numbernullable
enabled boolean
parent
object
nullable
id string
name string
slug string
parent_id stringnullable
position numbernullable
enabled boolean
{
"meta": {
"total": 0,
"per_page": 0,
"current_page": 0,
"last_page": 0,
"first_page": 0,
"first_page_url": "string",
"last_page_url": "string",
"next_page_url": "string",
"previous_page_url": "string"
},
"data": [
{
"id": "1",
"name": "afasf",
"slug": "afasf",
"parent_id": 1,
"position": null,
"enabled": true,
"parent": {
"id": "1",
"name": "afasf",
"slug": "afasf",
"parent_id": 1,
"position": null,
"enabled": true
}
}
]
}
Loading...