Style

GET /v1/entities/style/{entity_id}

Retrieves a specific style.

Request Parameters

Location Parameter Type Required/ Optional Description
path entity_id number optional The string id of the style being searched for

Example Request

GET /v1/entities/style/classic_rock HTTP/1.1
Host: api.ampermusic.com
Content-Type: application/vnd.api+json
Authorization: Basic abcxyz

Response Data

Data Item Type Description
data object
data.type string The type of data (entity_style in this case)
data.id string The string ID of the style
data.attributes object
data.attributes.name string The string name of the style
data.attributes.category string The string category of the style. Will always be style
data.links object
data.links.self string The URL of the style
links object
links.self string The URL of this style

Example Response

Header

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

Body

{
	"data": {
		"attributes": {
			"category": "style",
			"name": "Classic Rock"
		},
		"id": "classic_rock",
		"links": {
			"self": "https://api.ampermusic.com/v1/entities/style/classic_rock"
		},
		"type": "entity_style"
	},
	"links": {
		"self": "https://api.ampermusic.com/v1/entities/style/classic_rock"
	}
}