Data Models
This page describes the data models used by the Trading Card API.
Card
A trading card resource following JSON:API specification
Properties
Property | Type | Description |
---|---|---|
type | string | Resource type |
id | string | Unique identifier |
attributes | object | |
relationships | object |
Set
A trading card set resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Player
A player resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Team
A team resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
PaginationLinks
JSON:API pagination links
Properties
Property | Type | Description |
---|---|---|
first | string | |
last | string | |
prev | string | |
next | string |
PaginationMeta
JSON:API pagination metadata
Properties
Property | Type | Description |
---|---|---|
current_page | integer | |
from | integer | |
to | integer | |
per_page | integer | |
total | integer | |
last_page | integer |
ErrorResponse
JSON:API error response format
Properties
Property | Type | Description |
---|---|---|
errors | array |
Attribute
An attribute definition resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Brand
A brand resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Manufacturer
A manufacturer resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Year
A year resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
Genre
A genre resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
ObjectAttribute
An object attribute instance resource linking an attribute to a specific object
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |
PlayerTeam
A player-team relationship resource
Properties
Property | Type | Description |
---|---|---|
type | string | |
id | string | |
attributes | object |