{
  "openapi": "3.0.0",
  "info": {
    "title": "The Palm Beach API",
    "version": "1.0.0",
    "description": "Hyperlocal news for Palm Beach County, Florida — West Palm Beach, Boca Raton, Mar-a-Lago, and the Treasure Coast. Part of Nexcom Media Network.",
    "contact": {
      "email": "editor@nexcom.media"
    },
    "license": {
      "name": "CC BY 4.0 (article excerpts and structured data; full articles retain original-publisher copyright)"
    }
  },
  "servers": [
    {
      "url": "https://thepalmbeach.org",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/intelligence": {
      "get": {
        "summary": "Full briefing — articles, weather, alerts, events in one JSON request",
        "operationId": "getIntelligence",
        "responses": {
          "200": {
            "description": "Briefing JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/articles": {
      "get": {
        "summary": "Article feed — current articles with title, excerpt, source, publishDate, slug",
        "operationId": "getArticles",
        "responses": {
          "200": {
            "description": "Article list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/events": {
      "get": {
        "summary": "Community events",
        "operationId": "getEvents",
        "responses": {
          "200": {
            "description": "Event list"
          }
        }
      }
    },
    "/api/weather": {
      "get": {
        "summary": "Current weather + forecast for Palm Beach, Florida",
        "operationId": "getWeather",
        "responses": {
          "200": {
            "description": "Weather data"
          }
        }
      }
    },
    "/api/alerts": {
      "get": {
        "summary": "Active emergency alerts",
        "operationId": "getAlerts",
        "responses": {
          "200": {
            "description": "Alert list"
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "summary": "Service health check",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Health JSON"
          }
        }
      }
    },
    "/feed.json": {
      "get": {
        "summary": "JSON Feed (jsonfeed.org v1.1)",
        "operationId": "getJsonFeed",
        "responses": {
          "200": {
            "description": "JSON Feed"
          }
        }
      }
    }
  }
}