{
  "info": {
    "description": "Turn an ISBN into a formatted citation in MLA, APA, Chicago, Wikipedia or BibTeX.",
    "title": "OttoBib",
    "version": "b57bcf5"
  },
  "openapi": "3.1.0",
  "paths": {
    "/isbn/{isbn}": {
      "get": {
        "parameters": [
          {
            "description": "ISBN-10 or ISBN-13, hyphens optional",
            "in": "path",
            "name": "isbn",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lookup completed; check the found field"
          },
          "400": {
            "description": "Malformed ISBN or failed check digit"
          }
        },
        "summary": "Cite a book in every supported style"
      }
    },
    "/isbn/{isbn}/{style}": {
      "get": {
        "parameters": [
          {
            "description": "ISBN-10 or ISBN-13, hyphens optional",
            "in": "path",
            "name": "isbn",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "style",
            "required": true,
            "schema": {
              "enum": [
                "mla",
                "apa",
                "chicago",
                "wp",
                "bibtex"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Lookup completed"
          }
        },
        "summary": "Cite a book in one style"
      }
    }
  },
  "servers": [
    {
      "url": "https://www.ottobib.com"
    }
  ]
}
