Skip to main content

/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

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

Required. Number of manufacturers.

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.