Rulings

Relationships

Ruling resources have the following relationships for their records.

  • Card

All Rulings

Endpoint

GET /api/v3/public/rulings

Request

Route

GET /api/v3/public/rulings

Headers

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

cURL

curl -g "https://api-preview.netrunnerdb.com/api/v3/public/rulings" -X GET 

Response

Simulated Response

Status

200

Headers

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

Body

{
  "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"
      }
    },
    {
      "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?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "first": "http://localhost:3000/api/v3/public/rulings?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "last": "http://localhost:3000/api/v3/public/rulings?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
  },
  "meta": {
    "stats": {
      "total": {
        "count": 2
      }
    }
  }
}