Reviews

Card reviews have the following relationships

  • Card

Filter on a single card id

Endpoint

GET /api/v3/public/reviews?filter[card_id]=:query

Parameters

Name Description Type
query required Query string

Request

Route

GET /api/v3/public/reviews?filter[card_id]=endurance

Headers

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

Query Parameters

filter={"card_id" => "endurance"}

cURL

curl -g "https://api-preview.netrunnerdb.com/api/v3/public/reviews?filter[card_id]=endurance" -X GET 

Response

Simulated Response

Status

200

Headers

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

Body

{
  "data": [
    {
      "id": "1",
      "type": "reviews",
      "attributes": {
        "username": "plural",
        "body": "This might be the most poorly balanced card I've ever seen. Imagine an icebreaker that isn't a program, can be installed on turn 1 or 2 for 8 credits, has the ability break any type of ice for no credit cost, can use this ability as soon as it's installed and can repeatedly replenish its own ability to break any kind of ice just for a run being successful. Oh and it gives you 2 chips as well. Sure I mean why not. The card might as well just read 'The runner now has infinite credits. Have fun.' I just started playing this game again and I honestly already want to quit if this is the kind of balance I can come to expect.",
        "card": "Endurance",
        "card_id": "endurance",
        "created_at": "2022-12-08T12:00:00+00:00",
        "updated_at": "2022-12-08T12:00:00+00:00",
        "votes": 0,
        "comments": [
          {
            "id": 586794857,
            "body": "How can I edit my comment lol",
            "user": "stwyde",
            "created_at": "2022-12-08T12:00:00.000Z",
            "updated_at": "2022-12-08T12:00:00.000Z"
          }
        ]
      },
      "relationships": {
        "card": {
          "links": {
            "related": "http://localhost:3000/api/v3/public/cards/endurance"
          }
        }
      },
      "links": {
        "self": "http://localhost:3000/api/v3/public/reviews/1"
      }
    }
  ],
  "links": {
    "self": "http://localhost:3000/api/v3/public/reviews?filter%5Bcard_id%5D=endurance&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "first": "http://localhost:3000/api/v3/public/reviews?filter%5Bcard_id%5D=endurance&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count",
    "last": "http://localhost:3000/api/v3/public/reviews?filter%5Bcard_id%5D=endurance&page%5Bnumber%5D=1&page%5Bsize%5D=20&stats%5Btotal%5D=count"
  },
  "meta": {
    "stats": {
      "total": {
        "count": 1
      }
    }
  }
}