{
  "openapi": "3.0.0",
  "info": {
    "title": "Crypto Vesting Schedule Simulator API",
    "version": "1.0.0",
    "description": "Self-contained API for simulating token vesting schedules and comparing unlock timelines."
  },
  "servers": [
    {
      "url": "https://your-vercel-url.vercel.app"
    }
  ],
  "paths": {
    "/": {
      "get": {
        "summary": "List all endpoints",
        "responses": {
          "200": {
            "description": "API index"
          }
        }
      }
    },
    "/openapi": {
      "get": {
        "summary": "Get OpenAPI specification",
        "responses": {
          "200": {
            "description": "OpenAPI 3.0 JSON spec"
          }
        }
      }
    },
    "/examples": {
      "get": {
        "summary": "Get example vesting payloads",
        "responses": {
          "200": {
            "description": "Example inputs"
          }
        }
      }
    },
    "/simulate-vesting": {
      "post": {
        "summary": "Simulate a vesting schedule",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "totalAllocation": {
                    "type": "number"
                  },
                  "tgeUnlockPercent": {
                    "type": "number"
                  },
                  "cliffMonths": {
                    "type": "number"
                  },
                  "vestingMonths": {
                    "type": "number"
                  },
                  "startMonth": {
                    "type": "number"
                  },
                  "frequency": {
                    "type": "string",
                    "enum": [
                      "monthly",
                      "quarterly",
                      "yearly"
                    ]
                  }
                },
                "required": [
                  "totalAllocation",
                  "tgeUnlockPercent",
                  "cliffMonths",
                  "vestingMonths"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Simulated vesting timeline"
          }
        }
      }
    },
    "/compare-schedules": {
      "post": {
        "summary": "Compare two vesting schedules",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "scheduleA": {
                    "type": "object"
                  },
                  "scheduleB": {
                    "type": "object"
                  }
                },
                "required": [
                  "scheduleA",
                  "scheduleB"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Comparison of two vesting schedules"
          }
        }
      }
    }
  }
}