{
  "openapi": "3.1.0",
  "info": {
    "title": "Pacific Steel 5025 Public Knowledge API",
    "version": "1.0.0",
    "description": "Read-only public team, schedule, robot, season, competition result, and published journal information. Responses include source links. Private accounts, form submissions, replay data, and admin actions are not exposed."
  },
  "servers": [{ "url": "https://5025.pages.dev/api/public/v1" }],
  "paths": {
    "/": { "get": { "operationId": "getApiIndex", "summary": "Discover public endpoints", "responses": { "200": { "description": "API metadata and endpoint list", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/team": { "get": { "operationId": "getTeamOverview", "summary": "Get team facts and eligibility", "responses": { "200": { "description": "Public team overview", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/schedule": { "get": { "operationId": "getMeetingSchedule", "summary": "Get the typical meeting schedule", "responses": { "200": { "description": "Typical seasonal meeting schedule; confirm current details", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/robots": { "get": { "operationId": "listRobots", "summary": "List archived robots", "parameters": [{ "$ref": "#/components/parameters/Year" }], "responses": { "200": { "description": "Robot archive entries with source URLs and name confirmation state", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/seasons": { "get": { "operationId": "listSeasons", "summary": "List FRC seasons and records", "parameters": [{ "$ref": "#/components/parameters/Year" }], "responses": { "200": { "description": "Season records with source URLs", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/results": { "get": { "operationId": "getRecentResults", "summary": "Get recent event results", "responses": { "200": { "description": "Event records with direct sources", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/journal": { "get": { "operationId": "listPublishedJournal", "summary": "List published journal posts", "responses": { "200": { "description": "Published article metadata and canonical sources", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } },
    "/search": { "get": { "operationId": "searchPublicContent", "summary": "Search public team content", "parameters": [{ "name": "q", "in": "query", "required": true, "schema": { "type": "string", "minLength": 2, "maxLength": 160 } }], "responses": { "200": { "description": "Matching public documents with citations", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Envelope" } } } } } } }
  },
  "components": {
    "parameters": { "Year": { "name": "year", "in": "query", "required": false, "schema": { "type": "integer", "minimum": 2014, "maximum": 2027 } } },
    "schemas": {
      "Envelope": { "type": "object", "required": ["schemaVersion", "generatedAt", "data"], "properties": { "schemaVersion": { "const": "1.0" }, "generatedAt": { "type": "string", "format": "date-time" }, "data": {} } }
    }
  }
}
