Quote Garden · Schema

Quote

A single quote record as stored in the Quote Garden MongoDB collection and returned by the v3 API.

QuotesInspirationOpen SourceFree APINode.jsMongoDBExpressPersonalityPublic APIs

Properties

Name Type Description
_id string MongoDB ObjectId of the quote record.
quoteText string The verbatim quote text.
quoteAuthor string Attributed author of the quote.
quoteGenre string Single-genre tag classifying the quote (e.g., life, love, success, business).
__v integer Mongoose document version key.
View JSON Schema on GitHub

JSON Schema

quote-garden-quote-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/quote-garden/refs/heads/main/json-schema/quote-garden-quote-schema.json",
  "title": "Quote",
  "description": "A single quote record as stored in the Quote Garden MongoDB collection and returned by the v3 API.",
  "type": "object",
  "required": ["_id", "quoteText", "quoteAuthor", "quoteGenre"],
  "additionalProperties": false,
  "properties": {
    "_id": {
      "type": "string",
      "description": "MongoDB ObjectId of the quote record.",
      "pattern": "^[a-f0-9]{24}$"
    },
    "quoteText": {
      "type": "string",
      "description": "The verbatim quote text.",
      "minLength": 1
    },
    "quoteAuthor": {
      "type": "string",
      "description": "Attributed author of the quote."
    },
    "quoteGenre": {
      "type": "string",
      "description": "Single-genre tag classifying the quote (e.g., life, love, success, business)."
    },
    "__v": {
      "type": "integer",
      "description": "Mongoose document version key.",
      "minimum": 0
    }
  }
}