Relationships
Ruling resources have the following relationships for their records.
- Card
Ruling resources have the following relationships for their records.
GET /api/v3/public/rulings?filter[card_id]=:card_id
| Name | Description | Type |
|---|---|---|
| card_id required | Card | string |
GET /api/v3/public/rulings?filter[card_id]=hedge_fund
Content-Type: application/json
Host: api-preview.netrunnerdb.com
filter={"card_id" => "hedge_fund"}
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/rulings?filter[card_id]=hedge_fund" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "1",
"type": "rulings",
"attributes": {
"card_id": "hedge_fund",
"nsg_rules_team_verified": false,
"question": null,
"answer": null,
"text_ruling": "It is required to put this in your deck.",
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards/hedge_fund"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/rulings/1"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/rulings?filter%5Bcard_id%5D=hedge_fund&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/rulings?filter%5Bcard_id%5D=hedge_fund&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/rulings?filter%5Bcard_id%5D=hedge_fund&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 1
}
}
}
}