{
  "openapi": "3.0.3",
  "info": {
    "title": "Call a Code Engine function",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "<your-code-engine-function-public-url>",
      "description": "Call a Code Engine function"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "summary": "Invoke my Code Engine function",
        "description": "Code engine function using optional query parameters",
        "parameters": [
          {
            "in": "query",
            "name": "first_name",
            "schema": {
              "type": "string"
            },
            "description": "first name"
          },
          {
            "in": "query",
            "name": "last_name",
            "schema": {
              "type": "string"
            },
            "description": "last name"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "__ce_method": {
                      "description": "The type of HTTP method call",
                      "type": "string"
                    },
                    "first_name": {
                      "description": "The fname query param by user",
                      "type": "string"
                    },
                    "last_name": {
                      "description": "The lname query param by user",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not found response",
            "content": {
              "application/json": {
                "schema": {
                  "title": "Something is wrong somewhere",
                  "type": "string",
                  "example": "Not found"
                }
              }
            }
          }
        }
      }
    }
  }
}
