{
  "openapi": "3.1.0",
  "info": {
    "title": "AixPoint Public Forms API",
    "version": "1.0.0",
    "description": "Public form-submission endpoints exposed by aixpoint.de. All endpoints are POST-only, JSON in / JSON out, and rate-limited.",
    "contact": {
      "name": "AixPoint",
      "url": "https://www.aixpoint.de/contact"
    }
  },
  "servers": [
    { "url": "https://vztjvyuljsgemocybmgc.functions.supabase.co", "description": "Lovable Cloud edge functions" }
  ],
  "paths": {
    "/submit-pitch": {
      "post": {
        "summary": "Submit a startup pitch to AixPoint",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["founderName", "email", "company", "pitch"],
                "properties": {
                  "founderName": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "company": { "type": "string" },
                  "stage": { "type": "string" },
                  "sector": { "type": "string" },
                  "pitch": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Pitch received" },
          "400": { "description": "Validation error" }
        }
      }
    },
    "/send-newsletter-subscription": {
      "post": {
        "summary": "Subscribe to the AixPoint newsletter",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["email"],
                "properties": {
                  "email": { "type": "string", "format": "email" },
                  "name": { "type": "string" },
                  "language": { "type": "string", "enum": ["en","de","fr","es","it","nl","zh"] }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Subscription accepted" },
          "400": { "description": "Validation error" }
        }
      }
    },
    "/send-photography-booking": {
      "post": {
        "summary": "Request a sports photography booking",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "email", "eventDate"],
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "eventDate": { "type": "string", "format": "date" },
                  "location": { "type": "string" },
                  "details": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Booking received" }
        }
      }
    },
    "/send-job-application": {
      "post": {
        "summary": "Send a job application",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "email", "role"],
                "properties": {
                  "name": { "type": "string" },
                  "email": { "type": "string", "format": "email" },
                  "role": { "type": "string" },
                  "message": { "type": "string" },
                  "linkedinUrl": { "type": "string", "format": "uri" }
                }
              }
            }
          }
        },
        "responses": {
          "200": { "description": "Application received" }
        }
      }
    }
  }
}
