Card Sets

Relationships

Card Set resources have the following relationships for their records.

  • Card Cycle
  • Card Set Type
  • Cards
  • Printings

Get A Single Card Set

Endpoint

GET /api/v3/public/card_sets/:id

Parameters

Name Description Type
id required Id string

Request

Route

GET /api/v3/public/card_sets/midnight_sun

Headers

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

cURL

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "data": {
    "id": "midnight_sun",
    "type": "card_sets",
    "attributes": {
      "name": "Midnight Sun",
      "date_release": "2022-07-22",
      "size": 65,
      "card_cycle_id": "borealis",
      "card_set_type_id": "booster_pack",
      "legacy_code": null,
      "position": 33,
      "first_printing_id": null,
      "released_by": null,
      "updated_at": "2022-12-08T12:00:00+00:00"
    },
    "relationships": {
      "card_cycle": {
        "links": {
          "related": "http://localhost:3000/api/v3/public/card_cycles/borealis"
        }
      },
      "card_set_type": {
        "links": {
          "related": "http://localhost:3000/api/v3/public/card_set_types/booster_pack"
        }
      },
      "printings": {
        "links": {
          "related": "http://localhost:3000/api/v3/public/printings?filter[card_set_id]=midnight_sun"
        }
      },
      "cards": {
        "links": {
          "related": "http://localhost:3000/api/v3/public/cards?filter[card_set_id]=midnight_sun"
        }
      },
      "card_pools": {
        "links": {
          "related": "http://localhost:3000/api/v3/public/card_pools?filter[card_set_id]=midnight_sun"
        }
      }
    },
    "links": {
      "self": "http://localhost:3000/api/v3/public/card_sets/midnight_sun"
    }
  },
  "meta": {}
}