Relationships
Card Subtype resources have the following relationships for their records.
- Cards
- Printings
Card Subtype resources have the following relationships for their records.
GET /api/v3/public/card_subtypes
GET /api/v3/public/card_subtypes
Content-Type: application/json
Host: api-preview.netrunnerdb.com
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/card_subtypes" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "academic",
"type": "card_subtypes",
"attributes": {
"name": "Academic",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=academic"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=academic"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/academic"
}
},
{
"id": "advertisement",
"type": "card_subtypes",
"attributes": {
"name": "Advertisement",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=advertisement"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=advertisement"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/advertisement"
}
},
{
"id": "code_gate",
"type": "card_subtypes",
"attributes": {
"name": "Code Gate",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=code_gate"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=code_gate"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/code_gate"
}
},
{
"id": "current",
"type": "card_subtypes",
"attributes": {
"name": "Current",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=current"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=current"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/current"
}
},
{
"id": "digital",
"type": "card_subtypes",
"attributes": {
"name": "Digital",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=digital"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=digital"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/digital"
}
},
{
"id": "icebreaker",
"type": "card_subtypes",
"attributes": {
"name": "Icebreaker",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=icebreaker"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=icebreaker"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/icebreaker"
}
},
{
"id": "killer",
"type": "card_subtypes",
"attributes": {
"name": "Killer",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=killer"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=killer"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/killer"
}
},
{
"id": "natural",
"type": "card_subtypes",
"attributes": {
"name": "Natural",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=natural"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=natural"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/natural"
}
},
{
"id": "next",
"type": "card_subtypes",
"attributes": {
"name": "Next",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_subtype_id]=next"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_subtype_id]=next"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes/next"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/card_subtypes?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/card_subtypes?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/card_subtypes?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 9
}
}
}
}