GET All Options
Developing
GET
{{url}}api/v1/admin/options
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://ecompulse.test/api/v1/admin/options' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT'
Response Response Example
{
"status": "success",
"message": "Options retrieved successfully",
"data": [
{
"id": 2,
"name": "Shirt Colour",
"values": [
{
"label": "White",
"price": "0.00",
"type": "Fixed"
},
{
"label": "Red",
"price": "5.00",
"type": "Fixed"
},
{
"label": "Yellow",
"price": "5.00",
"type": "Fixed"
},
{
"label": "Blue",
"price": "7.00",
"type": "Fixed"
},
{
"label": "Black",
"price": "10.00",
"type": "Fixed"
}
],
"option_type": {
"id": 2,
"name": "Colour"
},
"status": 1
},
{
"id": 1,
"name": "Computer Memory Size",
"values": [
{
"label": "4GB",
"price": "875.00",
"type": "Fixed"
},
{
"label": "8GB",
"price": "1600.00",
"type": "Fixed"
},
{
"label": "16GB",
"price": "3200.00",
"type": "Fixed"
},
{
"label": "32GB",
"price": "5350.00",
"type": "Fixed"
}
],
"option_type": {
"id": 3,
"name": "Memory"
},
"status": 1
}
...
...
...
]
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Responses
Modified at 2024-05-26 22:59:16