Filters API

Current version: v1.1

Get list of filters

GET
/filters/list.json
[
	{
		[key] => colore-principale
		[values] : {
				0 : "rosso",
				1 : "blu",
				2 : "verde"
		},
		[images] : {
				0 : "https://...",
				1 : "https://...",
				2 : "https://...",
		},
		[categories] : [ 4545,6463,4363],
		[feedActive] : 0,
		[feedValues] : {
				0 : "",
				1 : "",
				2 : ""
		},
		[descriptions] : {
				0 : "",
				1 : "",
				2 : ""
		}
	},
	...
]
					

Create filter

Check filters list to check if filter_key already exists to avoid duplicated filters.

POST
/filters/filter.json
filter_key required (string) [a-z] carachters, no whitespace, - and _ allowed
filter_values required (array) couples [index]:[value]
Example:

{
    "filter_key": "colore-principale",
    "filter_values": {
			0 : "Rosso",
			1 : "Blu",
			2 : "Verde",
			3 : "Giallo",
			....
		}
}