Relationships
Card Set Type resources have the following relationships for their records.
- Card Sets
Card Set Type resources have the following relationships for their records.
GET /api/v3/public/card_set_types
GET /api/v3/public/card_set_types
Content-Type: application/json
Host: api-preview.netrunnerdb.com
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/card_set_types" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "core",
"type": "card_set_types",
"attributes": {
"name": "Core",
"description": "A core set, or set that makes up part of the core selection of cards.",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card_sets": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_sets?filter[card_set_type_id]=core"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_set_types/core"
}
},
{
"id": "booster_pack",
"type": "card_set_types",
"attributes": {
"name": "Booster Pack",
"description": "A booster pack released as a subset of a larger release.",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card_sets": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_sets?filter[card_set_type_id]=booster_pack"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_set_types/booster_pack"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/card_set_types?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/card_set_types?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/card_set_types?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 2
}
}
}
}