Decklists

Decklists are published decks from users.

Relationships

Decklist resources have the following relationships for their records.

  • Side
  • Faction
  • Cards

All Decklists

Endpoint

GET /api/v3/public/decklists

Request

Route

GET /api/v3/public/decklists

Headers

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

cURL

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

Response

Simulated Response

Status

200

Headers

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

Body

{
  "data": [
    {
      "id": "11111111-1111-1111-1111-111111111111",
      "type": "decklists",
      "attributes": {
        "user_id": "ams",
        "follows_basic_deckbuilding_rules": true,
        "identity_card_id": "asa_group_security_through_vigilance",
        "name": "Cool Corp Decklist",
        "notes": "",
        "tags": [
          "tag1",
          "tag2"
        ],
        "side_id": "corp",
        "created_at": "2021-12-08T12:00:00+00:00",
        "updated_at": "2021-12-08T12:00:00+00:00",
        "faction_id": "haas_bioroid",
        "card_slots": {
          "adonis_campaign": 3,
          "hedge_fund": 3,
          "ikawah_project": 3,
          "luminal_transubstantiation": 1,
          "project_vitruvius": 3,
          "rashida_jaheem": 3
        },
        "num_cards": 16,
        "influence_spent": 0
      },
      "relationships": {
        "side": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/sides/corp"
          }
        },
        "faction": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/factions/haas_bioroid"
          }
        },
        "cards": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/cards?filter[decklist_id]=11111111-1111-1111-1111-111111111111"
          }
        }
      },
      "links": {
        "self": "http://localhost:3000/api/v3/public/decklists/11111111-1111-1111-1111-111111111111"
      }
    },
    {
      "id": "22222222-2222-2222-2222-222222222222",
      "type": "decklists",
      "attributes": {
        "user_id": "locks",
        "follows_basic_deckbuilding_rules": false,
        "identity_card_id": "armand_geist_walker_tech_lord",
        "name": "Rad Runner Decklist",
        "notes": "",
        "tags": [
          "tag3",
          "tag4"
        ],
        "side_id": "runner",
        "created_at": "2023-12-08T12:00:00+00:00",
        "updated_at": "2023-12-08T12:00:00+00:00",
        "faction_id": "criminal",
        "card_slots": {
          "jailbreak": 3,
          "logic_bomb": 1,
          "networking": 3,
          "pennyshaver": 3,
          "pinhole_threading": 3,
          "stargate": 2,
          "sure_gamble": 3,
          "the_class_act": 2
        },
        "num_cards": 20,
        "influence_spent": 11
      },
      "relationships": {
        "side": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/sides/runner"
          }
        },
        "faction": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/factions/criminal"
          }
        },
        "cards": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/cards?filter[decklist_id]=22222222-2222-2222-2222-222222222222"
          }
        }
      },
      "links": {
        "self": "http://localhost:3000/api/v3/public/decklists/22222222-2222-2222-2222-222222222222"
      }
    }
  ],
  "links": {
    "self": "http://localhost:3000/api/v3/public/decklists?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "first": "http://localhost:3000/api/v3/public/decklists?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "last": "http://localhost:3000/api/v3/public/decklists?page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
  },
  "meta": {
    "stats": {
      "total": {
        "count": 2
      }
    }
  }
}