Products Endpoint
TIP
Refer to note page for Base URL
* Home Page Products
Endpoint: GET
productsParameters
Not required
Sample Response
[
{
"id": "ba3cb694-c2ff-41cf-82d4-49eb63a81dc2",
"discountPercent": "15.00",
"productCategory": "Backpacks",
"brand": "Zara",
"mainCategory": "Girls",
"subCategory": "Girl's Shoes",
"name": "Polo T-Shirt",
"price": "34.00",
"slug": "polo-t-Shirt",
"store": {
"name": "Wookein Fashion Store",
"slug": "wookein-fashion-store"
},
"quantity": 1,
"sizes": ['L', 'XL'],
"images": [
"http://127.0.0.1:8000/media/products/2023-07-25/252903747_410898053822974_7209345822968452321_n.jpg"
],
"colors": [
{
"name": "Dark Salmon",
"code": "#E9967A"
},
{
"name": "Indian Red",
"code": "#CD5C5C"
}
]
}
]* Product Details
Endpoint: GET
products/product_slugParameters
replace product_slug in the URL with the slug of the product
Sample Request
products/elegant-printed-high-waisted-dress-red-5847Sample Response
{
"id": "d3f8206b-7a56-45e0-b74d-9111d0ef8bc5",
"brand": "Adidas",
"colors": [
{
"name": "red",
"code": "#ff00"
}
],
"slug": "blue-jeans",
"description": "Casual clothes for boys",
"discountPercent": "5.00",
"images": [
"http://127.0.0.1:8000/media/products/2023-10-05/354e209b-f9f2-42c4-9130-d57f49bd77c0.webp",
"http://127.0.0.1:8000/media/products/2023-10-07/unnamed_LifoDM1.jpg"
],
"mainCategory": "Boys",
"quantity": 10,
"name": "Blue Jeans",
"price": "58.99",
"productCategory": "Active Tracksuits",
"sizes": [
"L",
"XL"
],
"store": {
"id": "9bc625d6-aa3a-43f3-b385-9a8ac7ca8f5d",
"name": "Wookein Fashion Store",
"slug": "wookein-fashion-store"
"phone": "0553510672",
"state": "Oti Region"
},
"specifications": "<strong>Neat Shirt</strong>",
"subCategory": "Women's Clothing",
"starRating": "0.0",
"views": "0"
}* View Product
Endpoint: POST
products/views/Request Headers
| Authorization | Value | Description | Required |
|---|---|---|---|
| Bearer | ******* | Firebase access token | ✔️ |
Payload Description
| Name | Type | Description | Required |
|---|---|---|---|
| productId | uuid | product id | ✔️ |
Sample Payload
{
"productId": "fa39c3fd-2c16-4547-89a0-96d6d6a5d001"
}Sample Response
{
"id": "663e3916-b7ab-4206-9129-298390780126",
"ipAddress": "127.0.0.1",
"dateCreated": "2023-12-13T12:30:17.691022Z",
"productId": "fa39c3fd-2c16-4547-89a0-96d6d6a5d001"
}* Store Products
Endpoint: GET
products/store/?productId__store__slug=wookein-fashion-store&size=12Query Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| productId__store__slug | string | store slug | ✔️ |
| size | number | length of returned data | ❌ |
Sample Response
{
"count": 100,
"next": http://api.wookein.com/v3/products/store/?productId__store__slug=wookein-fashion-store&size=12,
"previous": null,
"results": [
{
"id": "bb4e8704-1d2f-42b4-a8fb-9d7e61d3f085",
"discountPercent": "12.00",
"productCategory": "Boots",
"brand": "Aldo",
"mainCategory": "Girls",
"subCategory": "Girl's Shoes",
"name": "Blue Jeans",
"price": "123.00",
"slug": "blue-jeans-9056",
"store": {
"name": "Wookein Fashion Store",
"slug": "wookein-fashion-store"
},
"sizes": [
"39"
],
"starRating": "0.0",
"images": [
"http://127.0.0.1:8000/media/products/2023-11-23/Shebrogues-bluebird3-25_5hL8SNA.png"
]
}
]
}
Wookein Docs