{
  "openapi": "3.0.3",
  "info": {
    "title": "Codex Test API",
    "version": "1.0.0",
    "description": "Small JSON API for validating Zapier trigger and action configuration."
  },
  "servers": [
    {
      "url": "https://codex-test.hanumanf.cloud"
    }
  ],
  "paths": {
    "/api/auth-test": {
      "get": {
        "summary": "Check API key credentials",
        "responses": {
          "200": {
            "description": "Authentication check result"
          }
        }
      }
    },
    "/api/test-items": {
      "get": {
        "summary": "List test items",
        "responses": {
          "200": {
            "description": "Array of test items"
          }
        }
      },
      "post": {
        "summary": "Create a test item",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "title": { "type": "string" },
                  "body": { "type": "string" }
                },
                "required": ["title"]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Created test item"
          }
        }
      }
    }
  }
}
