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[nsg_rules_team_verified]=:nsg_rules_team_verified
Name | Description | Type |
---|---|---|
nsg_rules_team_verified required | Nsg rules team verified | boolean |
GET /api/v3/public/rulings?filter[nsg_rules_team_verified]=true
Content-Type: application/json
Host: api-preview.netrunnerdb.com
filter={"nsg_rules_team_verified" => "true"}
curl -g "https://api-preview.netrunnerdb.com/api/v3/public/rulings?filter[nsg_rules_team_verified]=true" -X GET
200
content-type: application/vnd.api+json; charset=utf-8
{
"data": [
{
"id": "2",
"type": "rulings",
"attributes": {
"card_id": "sure_gamble",
"nsg_rules_team_verified": true,
"question": "is the runner required to include this in their deck?",
"answer": "nah. you do you.",
"text_ruling": null,
"updated_at": "2022-12-08T12:00:00+00:00"
},
"relationships": {
"card": {
"links": {
"related": "http://localhost:3000/api/v3/public/cards/sure_gamble"
}
}
},
"links": {
"self": "http://localhost:3000/api/v3/public/rulings/2"
}
}
],
"links": {
"self": "http://localhost:3000/api/v3/public/rulings?filter%5Bnsg_rules_team_verified%5D=true&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"first": "http://localhost:3000/api/v3/public/rulings?filter%5Bnsg_rules_team_verified%5D=true&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
"last": "http://localhost:3000/api/v3/public/rulings?filter%5Bnsg_rules_team_verified%5D=true&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
},
"meta": {
"stats": {
"total": {
"count": 1
}
}
}
}