{
  "openapi": "3.0.3",
  "info": {
    "title": "blog.jourdant.me API",
    "version": "2.0.0",
    "description": "Static, read-only JSON describing the posts on this blog."
  },
  "servers": [
    {
      "url": "https://blog.jourdant.me"
    }
  ],
  "paths": {
    "/api/posts.json": {
      "get": {
        "summary": "All published posts, newest first",
        "responses": {
          "200": {
            "description": "Array of posts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/post"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/authors.json": {
      "get": {
        "summary": "Blog authors",
        "responses": {
          "200": {
            "description": "Array of authors",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/author"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "post": {
        "type": "object",
        "properties": {
          "@id": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "datePublished": {
            "type": "string",
            "format": "date-time"
          },
          "dateModified": {
            "type": "string",
            "format": "date-time"
          },
          "display": {
            "type": "boolean"
          },
          "description": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "basedOn": {
            "type": "string",
            "description": "Slug of the post this one rewrites"
          },
          "read_time": {
            "type": "integer"
          },
          "featured": {
            "type": "boolean"
          },
          "slug": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "title": {
            "type": "string"
          }
        }
      },
      "author": {
        "type": "object",
        "properties": {
          "@id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "description": {
            "type": "string"
          },
          "image": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          }
        }
      }
    }
  }
}