{
  "openapi": "3.1.0",
  "info": {
    "title": "Two-Week Notice Date & Letter API",
    "version": "1.0.0",
    "description": "Free deterministic two-week notice last-day calculator and clean plain-text resignation letter generator. No API key required."
  },
  "servers": [
    {
      "url": "https://2weeknoticetemplate.com"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "get": {
        "operationId": "generate_two_week_notice",
        "summary": "Two-Week Notice Date & Letter API",
        "parameters": [
          {
            "name": "noticeDate",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "2026-12-01"
            }
          },
          {
            "name": "noticeDays",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 14
            }
          },
          {
            "name": "role",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Product Manager"
            }
          },
          {
            "name": "company",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Acme Co"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deterministic JSON calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "generate_two_week_notice_post",
        "summary": "Two-Week Notice Date & Letter API (JSON body)",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Deterministic JSON calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/mcp": {
      "post": {
        "operationId": "mcp_jsonrpc",
        "summary": "Stateless MCP JSON-RPC 2.0 endpoint",
        "responses": {
          "200": {
            "description": "JSON-RPC 2.0 response"
          }
        }
      }
    },
    "/api/v1/a2a": {
      "post": {
        "operationId": "a2a_jsonrpc",
        "summary": "Google A2A JSON-RPC 2.0 endpoint",
        "responses": {
          "200": {
            "description": "A2A task result"
          }
        }
      }
    }
  },
  "x-example-request": "https://2weeknoticetemplate.com/api/v1/calculate?noticeDate=2026-12-01&noticeDays=14"
}
