jService · JSON Structure

Jservice Category Structure

Structural definition of a Jeopardy! category as served by the jService API.

Type: object Properties: 5 Required: 2
Games And ComicsTriviaJeopardyOpen SourceRubyRailsPublic APIs

jServiceCategory is a JSON Structure definition published by jService, describing 5 properties, of which 2 are required. It conforms to the https://json-structure.org/v1/schema meta-schema.

Properties

id title created_at updated_at clues_count

Meta-schema: https://json-structure.org/v1/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/v1/schema",
  "name": "jServiceCategory",
  "description": "Structural definition of a Jeopardy! category as served by the jService API.",
  "type": "object",
  "properties": {
    "id": { "type": "int32", "primary": true },
    "title": { "type": "string", "maxLength": 255 },
    "created_at": { "type": "datetime" },
    "updated_at": { "type": "datetime" },
    "clues_count": { "type": "int32", "default": 0, "description": "Counter cache for child clues." }
  },
  "relations": [
    { "name": "clues", "type": "has_many", "target": "jServiceClue", "foreignKey": "category_id" }
  ],
  "indexes": [
    { "name": "by_title", "fields": ["title"] }
  ],
  "required": ["id", "title"]
}