Mood

GET /v1/entities/mood/{entity_id}

Retrieves a specific mood.

Request Parameters

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

Example Request

GET /v1/entities/mood/happy 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_mood in this case)
data.id string The string ID of the mood
data.attributes object
data.attributes.name string The string name of the mood
data.attributes.category string The string category of the mood. Will always be mood
data.links object
data.links.self string The URL of the mood
links object
links.self string The URL of this mood

Example Response

Header

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

Body

{
	"data": {
		"attributes": {
			"category": "mood",
			"name": "Happy"
		},
		"id": "happy",
		"links": {
			"self": "https://api.ampermusic.com/v1/entities/mood/happy"
		},
		"type": "entity_mood"
	},
	"links": {
		"self": "https://api.ampermusic.com/v1/entities/mood/happy"
	}
}