{
  "openapi": "3.1.0",
  "info": {
    "title": "Smart Vision Public API",
    "version": "1.0.0",
    "description": "Public API for Smart Vision business consulting, services, and inquiries."
  },
  "servers": [
    {
      "url": "https://smartvisionegy4.com",
      "description": "Current Environment Server"
    }
  ],
  "x-service-info": {
    "title": "Smart Vision Engineering Consultations",
    "description": "Consulting and engineering services",
    "categories": [
      "consulting",
      "engineering",
      "business"
    ]
  },
  "paths": {
    "/contact/store": {
      "post": {
        "summary": "Submit a contact or consultation inquiry",
        "operationId": "submitContact",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email"
                  },
                  "phone": {
                    "type": "string"
                  },
                  "service_id": {
                    "type": "integer"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "name",
                  "email",
                  "phone"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Message submitted successfully"
          }
        }
      }
    },
    "/subscription": {
      "post": {
        "summary": "Subscribe to updates",
        "operationId": "subscribeNewsletter",
        "requestBody": {
          "required": true,
          "content": {
            "application/x-www-form-urlencoded": {
              "schema": {
                "type": "object",
                "properties": {
                  "email": {
                    "type": "string",
                    "format": "email"
                  }
                },
                "required": [
                  "email"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Subscribed successfully"
          }
        }
      }
    },
    "/up": {
      "get": {
        "summary": "Application Health Check",
        "operationId": "healthCheck",
        "responses": {
          "200": {
            "description": "Application is healthy"
          }
        }
      }
    },
    "/api/premium/consultation-report": {
      "get": {
        "summary": "Engineering Consultation Analysis Report",
        "operationId": "getConsultationReport",
        "description": "Premium engineering analysis report payable via MPP or x402 protocol.",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": 10.0,
          "currency": "USD",
          "description": "Engineering Consultation Assessment Report"
        },
        "responses": {
          "402": {
            "description": "Payment Required via MPP or x402 protocol"
          },
          "200": {
            "description": "Report delivered upon settled payment"
          }
        }
      }
    },
    "/api/premium/project-feasibility": {
      "get": {
        "summary": "Automated Engineering Project Feasibility Assessment",
        "operationId": "getProjectFeasibility",
        "description": "Comprehensive project feasibility study and engineering evaluation.",
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "amount": 25.0,
          "currency": "USD",
          "description": "Project Feasibility Study and Evaluation"
        },
        "responses": {
          "402": {
            "description": "Payment Required via MPP or x402 protocol"
          },
          "200": {
            "description": "Feasibility study delivered upon settled payment"
          }
        }
      }
    }
  }
}
