Theme


Receive a list of all Themes

GET /services/themes

Returns all themes

HTTP/1.1 200 OK
{
	"themes": [
		{
			"id" : "12",
			"title" : "Modern",
			"screenshot" : "//s3-eu-west-1.amazonaws.com/shoplo-grzesiek/core/themes/26/screenshots/main_medium.png",
			"created_at" : "2012-09-18 14:20:55",
			"updated_at" : "2012-09-18 14:20:55",
                        "active" : true,
		},
                {
                        "id" : "18",
                        "title" : "Classic",
                        "screenshot" : "//s3-eu-west-1.amazonaws.com/shoplo-apps/core/themes/16/screenshots/main_medium.png",
                        "created_at" : "2012-12-03 12:24:32",
                        "updated_at" : "2012-12-03 12:24:32",
                        "active" : false,
                },
	],
}

Receive a single Theme

GET services/themes/{id}

Receive a single Theme

Response
HTTP/1.1 200 OK
{
	"theme": {
        "id" : "18",
        "title" : "Classic",
        "screenshot" : "//s3-eu-west-1.amazonaws.com/shoplo-apps/core/themes/16/screenshots/main_medium.png",
        "created_at" : "2012-12-03 12:24:32",
        "updated_at" : "2012-12-03 12:24:32",
        "active" : false,
    },
}

Update an existing Theme

PUT services/themes/{id}

You can activete Theme in store. If You want to deactive theme, You need to activate another Theme.

Request
{
	"theme": {
		"active" : true,
	},
}
Response
HTTP/1.1 200 OK
{
	"theme": {
        "id" : "18",
        "title" : "Classic",
        "screenshot" : "//s3-eu-west-1.amazonaws.com/shoplo-apps/core/themes/16/screenshots/main_medium.png",
        "created_at" : "2012-12-03 12:24:32",
        "updated_at" : "2012-12-03 12:24:32",
        "active" : true,
    },
}