Collection

This is an array containing data about collections. Meta data reffered to collection is put under 'metadata' key in this array.


Receive a list of all Collections

Query parameters:
  • fields - list of fields returning in response
  • limit - number of the returned collections (default: 50)
  • page - currently displayed page (default: 1)
  • since_id - restrict collections to greater identifiers than specified id
  • title - filter with title
  • url - filtet with url address
  • product_id - displays the collections in which the product is
  • created_at_min - shows collections, which creation date was later than specified (format: 2011-06-19 13:18:50)
  • created_at_max - shows collections, which creation date was earlier than specified (format: 2011-06-19 13:18:50)
  • updated_at_min - shows collections, which modification date was later than specified (format: 2011-06-19 13:18:50)
  • updated_at_max - shows collections, which modification date was earlier than specified (format: 2011-06-19 13:18:50)
GET /services/collections

Returns all products

HTTP/1.1 200 OK
{
	"collections": [
		{
			"id" : 1,
			"uuid" : "fcdf61d7-634f-40b8-857f-8708b1cf9ac2",
			"title" : "Adidas Classics Samoa",
			"url" : "adidas-classics-samoa",
			"description" : "Designed in the '80s. Very stylish shoes.",
			"label" : "green",
			"label_color" : "BFE318",
			"count" : 3,
			"created_at" : "2011-11-06 20:22:24",
			"updated_at" : "2011-11-06 20:22:24",
			"metadata" : [
				{
					"meta_title" : "adidas classics samoa",
					"meta_description" : "Very stylish shoes from '80s by Adidas.",
					"meta_keywords" : "adidas, samoa, shoes",
				},
			],
		},
		{
			"id" : 2,
			"uuid" : "a4e1a930-a69f-497b-822d-53e3fbd0f2ee",
			"title" : "Nike Air Force",
			"url" : "nike-air-force",
			"description" : "Made for people who live an active life",
			"label" : "black",
			"label_color" : "000000",
			"count" : 5,
			"created_at" : "2011-11-06 20:27:24",
			"updated_at" : "2011-11-06 20:27:24",
			"metadata" : [
				{
					"meta_title" : "nike air force",
					"meta_description" : "Shoes ready for active life.",
					"meta_keywords" : "nike, shoes, air, force",
				},
			],
		},
	]
}

Receive a count of all Collections

Query parameters:
  • since_id - restrict collections to greater identifiers than specified id
  • product_id - filter with product id
  • created_at_min - counts collections, which creation date was later than specified (format: 2011-06-19 13:18:50)
  • created_at_max - counts collections, which creation date was earlier than specified (format: 2011-06-19 13:18:50)
  • updated_at_min - counts collections, which modification date was later than specified (format: 2011-06-19 13:18:50)
  • updated_at_max - counts collections, which modification date was earlier than specified (format: 2011-06-19 13:18:50)
GET /services/collections/count

Receive a count of all Collections

HTTP/1.1 200 OK
{
	"count": 15
}

Receive a single Collection

Query parameters:
  • fields - list of fields returning in response
GET services/collections/{id}

Receive a single Collection

Response
HTTP/1.1 200 OK
{
	"collection": {
		"id" : 1,
		"uuid" : "7024d07a-625b-48b9-9f2c-fbb7675b9631",
		"title" : "Adidas Classics Samoa",
		"url" : "adidas-classics-samoa",
		"description" : "Designed in the '80s. Very stylish shoes.",
		"label" : "green",
		"label_color" : "BFE318",
		"count" : 3,
		"created_at" : "2011-11-06 20:22:24",
		"updated_at" : "2011-11-06 20:22:24",
		"metadata" : [
			{
				"meta_title" : "adidas classics samoa",
				"meta_description" : "Very stylish shoes from '80s by Adidas.",
				"meta_keywords" : "adidas, samoa, shoes",
			},
		],
	},
}