{
  "openapi": "3.1.0",
  "info": {
    "title": "Okane Land Content API",
    "version": "1.0.0",
    "summary": "Read-only JSON access to the Okane Land curated tools and articles.",
    "description": "A small, read-only, unauthenticated JSON API over Okane Land content: the curated AI-tools shortlist (The Palette) and the published articles. No write operations.",
    "contact": {
      "name": "Okane Land",
      "url": "https://okaneland.com/",
      "email": "starfriend@okaneland.com"
    },
    "license": {
      "name": "Content (c) Overbrooke Media LLC",
      "url": "https://okaneland.com/privacy/"
    }
  },
  "servers": [
    {
      "url": "https://okaneland.com/api/v1",
      "description": "Production"
    }
  ],
  "paths": {
    "/status.json": {
      "get": {
        "summary": "Service status",
        "operationId": "getStatus",
        "responses": {
          "200": {
            "description": "Service is up.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "string"
                    },
                    "service": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "documentation": {
                      "type": "string",
                      "format": "uri"
                    }
                  },
                  "required": [
                    "status"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "/tools.json": {
      "get": {
        "summary": "List curated AI tools (The Palette)",
        "operationId": "listTools",
        "responses": {
          "200": {
            "description": "The full curated tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "updated": {
                      "type": "string",
                      "format": "date"
                    },
                    "count": {
                      "type": "integer"
                    },
                    "tools": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Tool"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/posts.json": {
      "get": {
        "summary": "List published articles",
        "operationId": "listPosts",
        "responses": {
          "200": {
            "description": "All published articles across editorial sections.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "posts": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Post"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Tool": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "summary": {
            "type": "string"
          },
          "stack": {
            "type": "string",
            "enum": [
              "local",
              "cloud",
              "both"
            ]
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notable": {
            "type": "boolean"
          },
          "bucket": {
            "type": "string"
          }
        }
      },
      "Post": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "section": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "markdown": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "publishDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    }
  }
}