jService · Example Payload

Jservice Category Example

Games And ComicsTriviaJeopardyOpen SourceRubyRailsPublic APIs

Jservice Category Example is an example object payload from jService, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

operationoperationIdrequestresponse

Example Payload

Raw ↑
{
  "operation": "GET /api/category",
  "operationId": "getCategory",
  "request": {
    "method": "GET",
    "url": "http://jservice.io/api/category?id=1"
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json; charset=utf-8"
    },
    "body": {
      "id": 1,
      "title": "history",
      "created_at": "2014-02-11T22:00:00.000Z",
      "updated_at": "2014-02-11T22:00:00.000Z",
      "clues_count": 2,
      "clues": [
        {
          "id": 1,
          "answer": "Copernicus",
          "question": "This astronomer's heliocentric model challenged Ptolemaic cosmology",
          "value": 200,
          "airdate": "1996-12-26T12:00:00.000Z",
          "category_id": 1,
          "game_id": 1,
          "invalid_count": 0
        },
        {
          "id": 2,
          "answer": "1776",
          "question": "Year the United States Declaration of Independence was signed",
          "value": 400,
          "airdate": "1996-12-26T12:00:00.000Z",
          "category_id": 1,
          "game_id": 1,
          "invalid_count": 0
        }
      ]
    }
  }
}