Product Brands Endpoint
TIP
Refer to products page for Base URL
* Add Brand
Endpoint: POST
admin/brandRequest Headers
| Authorization | Value | Description | Required |
|---|---|---|---|
| Bearer | ******* | Firebase access token | ✔️ |
Payload Description
| Name | Type | Description | Required |
|---|---|---|---|
| name | string | brand name | ✔️ |
| icon | string | brand file | ✔️ |
Sample Payload
{
"name": "Nike",
"icon": file
}Sample Response
{
"id": "d00e9237-367b-4bd9-b76f-a9429bc2d2ee",
"name": "Nike",
"icon": ""http://127.0.0.1:8000/media/brands/nike.jpg"
}* List Brands
Endpoint: GET
admin/brandsRequest Headers
| Authorization | Value | Description | Required |
|---|---|---|---|
| Bearer | ******* | Firebase access token | ✔️ |
Parameters
Not required
Sample Response
[
{
"id": "8e67e52c-d28a-4a1e-850d-4dd6fbc54358",
"name": "Adidas",
"icon": "http://127.0.0.1:8000/media/brands/adidas.png"
},
{
"id": "6ab6dafc-17b2-4a23-9b4f-fb19b0356275",
"name": "Gucci",
"icon": "http://127.0.0.1:8000/media/brands/gucci.jpeg"
},
{
"id": "a34b3f31-c99c-4bd1-bf53-41b439cc97c3",
"name": "Nike",
"icon": "http://127.0.0.1:8000/media/brands/nike.png"
}
]
Wookein Docs