{
  "openapi": "3.1.1",
  "info": {
    "title": "Example.WebApi | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.cel-vaya.com/"
    }
  ],
  "paths": {
    "/api/info": {
      "get": {
        "tags": [
          "Example"
        ],
        "summary": "Runtime and environment information.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnonymousTypeOfstringAndstringAndstringAndstringAndstringAndDateTimeAndlong"
                }
              }
            }
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "tags": [
          "Example"
        ],
        "summary": "Health check endpoint.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/quote": {
      "get": {
        "tags": [
          "Example"
        ],
        "summary": "Returns a random programming quote.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnonymousTypeOfstring"
                }
              }
            }
          }
        }
      }
    },
    "/api/echo": {
      "post": {
        "tags": [
          "Example"
        ],
        "summary": "Echoes a message back in a few transformations.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EchoRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EchoResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/todos": {
      "get": {
        "tags": [
          "Example"
        ],
        "summary": "Lists all to-do items.",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TodoItem"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Example"
        ],
        "summary": "Adds a new to-do item.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TodoCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/todos/{id}/toggle": {
      "post": {
        "tags": [
          "Example"
        ],
        "summary": "Toggles the done state of a to-do item.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/todos/{id}": {
      "delete": {
        "tags": [
          "Example"
        ],
        "summary": "Deletes a to-do item.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnonymousTypeOfstring": {
        "required": [
          "quote"
        ],
        "type": "object",
        "properties": {
          "quote": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AnonymousTypeOfstringAndstringAndstringAndstringAndstringAndDateTimeAndlong": {
        "required": [
          "application",
          "framework",
          "machine",
          "os",
          "processArchitecture",
          "serverTimeUtc",
          "uptimeSeconds"
        ],
        "type": "object",
        "properties": {
          "application": {
            "type": [
              "null",
              "string"
            ]
          },
          "framework": {
            "type": [
              "null",
              "string"
            ]
          },
          "machine": {
            "type": [
              "null",
              "string"
            ]
          },
          "os": {
            "type": [
              "null",
              "string"
            ]
          },
          "processArchitecture": {
            "type": [
              "null",
              "string"
            ]
          },
          "serverTimeUtc": {
            "type": "string",
            "format": "date-time"
          },
          "uptimeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "EchoRequest": {
        "required": [
          "message"
        ],
        "type": "object",
        "properties": {
          "message": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "EchoResponse": {
        "required": [
          "original",
          "upper",
          "length",
          "receivedUtc"
        ],
        "type": "object",
        "properties": {
          "original": {
            "type": "string"
          },
          "upper": {
            "type": "string"
          },
          "length": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "receivedUtc": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TodoCreate": {
        "required": [
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "TodoItem": {
        "required": [
          "id",
          "title",
          "done"
        ],
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "done": {
            "type": "boolean"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Example"
    }
  ]
}