Resource
A resource—such as an album, song, or playlist.
Declaration
object ResourceProperties
| Name | Type | Description |
|---|---|---|
id Required | string | Persistent identifier of the resource. |
type Required | string | The type of resource. |
href | string | A URL subpath that fetches the resource as the primary object. This member is only present in responses. |
attributes | Resource.Attributes | Attributes belonging to the resource (can be a subset of the attributes). The members are the names of the attributes defined in the object model. |
relationships | Resource.Relationships | Relationships belonging to the resource (can be a subset of the relationships). The members are the names of the relationships defined in the object model. See Relationship object for the values of the members. |
meta | Resource.Meta | Information about the request or response. The members may be any of the endpoint parameters. |
views | Resource.Views | The relationship views for the resource. |
Discussion
A Resource object may contain just these identifier members: id, type, href, and meta.