Relationships
Card Set resources have the following relationships for their records.
- Card Cycle
- Card Set Type
- Cards
- Printings
Card Set resources have the following relationships for their records.
GET /api/v3/public/card_sets
GET /api/v3/public/card_sets
Content-Type: application/json
Host: api-preview.netrunnerdb.com
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/card_sets" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "core",
"type": "card_sets",
"attributes": {
"name": "Core",
"date_release": "2012-09-06",
"size": 113,
"card_cycle_id": "core",
"card_set_type_id": "core",
"legacy_code": null,
"position": 1,
"first_printing_id": "12345",
"released_by": null,
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card_cycle": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_cycles/core"
}
},
"card_set_type": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_set_types/core"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_set_id]=core"
}
},
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_set_id]=core"
}
},
"card_pools": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_pools?filter[card_set_id]=core"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_sets/core"
}
},
{
"id": "midnight_sun",
"type": "card_sets",
"attributes": {
"name": "Midnight Sun",
"date_release": "2022-07-22",
"size": 65,
"card_cycle_id": "borealis",
"card_set_type_id": "booster_pack",
"legacy_code": null,
"position": 33,
"first_printing_id": null,
"released_by": null,
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card_cycle": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_cycles/borealis"
}
},
"card_set_type": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_set_types/booster_pack"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_set_id]=midnight_sun"
}
},
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_set_id]=midnight_sun"
}
},
"card_pools": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_pools?filter[card_set_id]=midnight_sun"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_sets/midnight_sun"
}
},
{
"id": "parhelion",
"type": "card_sets",
"attributes": {
"name": "Parhelion",
"date_release": "2022-12-12",
"size": 65,
"card_cycle_id": "borealis",
"card_set_type_id": "booster_pack",
"legacy_code": null,
"position": 34,
"first_printing_id": null,
"released_by": null,
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card_cycle": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_cycles/borealis"
}
},
"card_set_type": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_set_types/booster_pack"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_set_id]=parhelion"
}
},
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_set_id]=parhelion"
}
},
"card_pools": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_pools?filter[card_set_id]=parhelion"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_sets/parhelion"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/card_sets?page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/card_sets?page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/card_sets?page%5Bnumber%5D=1&page%5Bsize%5D=1000&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 3
}
}
}
}