/manufacturers
Retrieves a list of manufacturers or creates a new one.
Adress: https://instance_name/api/v1.5/manufacturers/
Methods:
- GET — list manufacturers;
- POST — create manufacturer.
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/manufacturers/
-H ‘Authorization: Token <<your_token>>’
-F "limit=3" \
-F "offset=0"
Response example
{
"count": 2,
"next": "http://example.com",
"previous": null,
"results": [
{
"id": 1,
"name": "NARZAN"
},
{
"id": 2,
"name": "SOBRANIE"
},
{
"id": 3,
"name": "Organic Shop"
},
]
}
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 manufacturers.
id
string
Manufacturer ID.
name
string
Manufacturer name.
Request body parameters
id
string
Manufacturer ID.
name
string
Manufacturer name.
Request example
curl –i –X POST
https://test.inspector-cloud.com/api/v1.5/manufacturers/
-H ‘Authorization: Token <<your_token>>’
-F "id=165168161" \
-F "name=Henkel"
Response example
Response code: 201