/brands
Retrieves a list of brands or creates a new one.
Adress: https://instance_name/api/v1.5/brands/
Methods:
- GET — list brands;
- POST — create brand.
Content-type: application/json
- GET
- POST
Request body parameters
limit integer
Number of results to return per page.
offset integer
The initial index from which to return the results.
Request example
curl –i –X GET
https://test.inspector-cloud.com/api/v1.5/brands/
-H ‘Authorization: Token <<your_token>>’
–F "limit=2" \
–F "offset=0"
Response example
{
"count": 2,
"next": "http://example.com",
"previous": http://example.com,
"results": [
{
"id": 1,
"name": "Adidas"
},
{
"id": 2,
"name": "ADRENALINE"
}
]
}
Response definitions
count integer
next string (uri) Nullable
Next page.
previous string (uri) Nullable
Previous page.
results Array of objects
Required. Array of objects with information about brands.
id string
Brand ID.
name string
Brand name.
Request body parameters
id string
Brand ID.
name string
Brand name.
Request example
curl –i –X POST
https://test.inspector-cloud.com/api/v1.5/brands/
-H ‘Authorization: Token <<your_token>>’
–F "id=1234567890111" \
–F "name=Persil"
Response example
Response code: 201