Relationships
Card Pool resources have the following relationships for their records.
- Card Cycles
- Card Sets
- Cards
- Format
- Printings
- Snapshots
Card Pool resources have the following relationships for their records.
GET /api/v3/public/card_pools/:id
Name | Description | Type |
---|---|---|
id required | Id | string |
GET /api/v3/public/card_pools/startup_02
Content-Type: application/json
Host: api-preview.netrunnerdb.com
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/card_pools/startup_02" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": {
"id": "startup_02",
"type": "card_pools",
"attributes": {
"name": "Startup Card Pool #2",
"format_id": "startup",
"card_cycle_ids": [
"core",
"borealis"
],
"updated_at": "2022-12-08T12:00:00+00:00",
"num_cards": 4
},
"relationships": {
"format": {
"links": {
"related": "http://localhost:3000/api/v3/public/formats/startup"
}
},
"card_cycles": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_cycles?filter[card_pool_id]=startup_02"
}
},
"card_sets": {
"links": {
"related": "http://localhost:3000/api/v3/public/card_sets?filter[card_pool_id]=startup_02"
}
},
"snapshots": {
"links": {
"related": "http://localhost:3000/api/v3/public/snapshots?filter[card_pool_id]=startup_02"
}
},
"cards": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards?filter[card_pool_id]=startup_02"
}
},
"printings": {
"links": {
"related": "http://localhost:3000/api/v3/public/printings?filter[card_pool_id]=startup_02"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/card_pools/startup_02"
}
},
"meta": {}
}