Rulings

Relationships

Ruling resources have the following relationships for their records.

  • Card

Filter - Get NSG Rules Team Verified Rulings

Endpoint

GET /api/v3/public/rulings?filter[nsg_rules_team_verified]=:nsg_rules_team_verified

Parameters

Name Description Type
nsg_rules_team_verified required Nsg rules team verified boolean

Request

Route

GET /api/v3/public/rulings?filter[nsg_rules_team_verified]=true

Headers

Content-Type: application/json
Host: api-preview.netrunnerdb.com

Query Parameters

filter={"nsg_rules_team_verified" => "true"}

cURL

curl -g "https://api-preview.netrunnerdb.com/api/v3/public/rulings?filter[nsg_rules_team_verified]=true" -X GET 

Response

Simulated Response

Status

200

Headers

content-type: application/vnd.api+json; charset=utf-8

Body

{
  "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
      }
    }
  }
}