Skip to content

Instantly share code, notes, and snippets.

@dviedma
Created June 23, 2021 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dviedma/da95e1894aa17cd5c972ffbd83cf190c to your computer and use it in GitHub Desktop.
Save dviedma/da95e1894aa17cd5c972ffbd83cf190c to your computer and use it in GitHub Desktop.
Category API example response
{
"filters": [
{
"id": "cableType",
"name": "Cable Type",
"description": "Select what kind of ports your product has",
"typeId": "structuredMulti",
"order": 10,
"isPinned": true,
"options": [
{
"id": "multiCable",
"value": "Multi Function Cable",
"icon": "http://mycdn.com/images/multi-cable.svg",
"isSelected": true
},
{
"id": "digiC",
"value": "Digital Cable",
"icon": " http://mycdn.com/images/digi-cable.svg",
"isDisabled": true
}
]
},
{
"id": "vRange",
"name": "Voltage Range",
"description": "This is the measurement in the back of the product",
"typeId": "multiRange",
"isDisabled": true,
"optionGroups": [
{
"id": "V",
"name": "V",
"values": [
{
"id": "-5vto5v",
"value": "-5v to 5v",
"isDisabled": true
},
{
"id": "-10vto10v",
"value": "-10v to 10v"
}
]
},
{
"id": "mV",
"name": "mV",
"values": [
{
"id": "-500mVto500mV",
"value": "-500mV to 500mV"
}
]
}
]
}
],
"products": [
{
"id": "9206",
"name": "NI-9206",
"description": "NI-9206 serves many purposes in testing environments",
"url": "/products/ni-9206",
"image": "http://mycdn.com/images/9206.png",
"price": "$7,299.00",
"productData": [
{
"id": "btype",
"name": "Bus Type",
"value": "C Series"
},
{
"id": "vrange",
"name": "Voltage Range",
"value": "-10 to 10v,-5v to 5v"
}
]
}
],
"pagination": {
"totalProducts": 1,
"totalPages": 1,
"currentPage": 1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment