﻿{
  "openapi": "3.0.4",
  "info": {
    "title": "WebApi",
    "version": "v1"
  },
  "paths": {
    "/annotations/fruit/{id}": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "summary": "CreateFruit",
        "description": "Create a fruit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The id of the fruit that will be created",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "Description for Body",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Fruit"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Description for response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Fruit"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/singleForm": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/PersonAnnotated"
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "$ref": "#/components/schemas/PersonAnnotated"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/multipleForms": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PersonAnnotated"
                  },
                  {
                    "$ref": "#/components/schemas/AddressAnnotated"
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PersonAnnotated"
                  },
                  {
                    "$ref": "#/components/schemas/AddressAnnotated"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/IFromFileAndString": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file",
                  "tags"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "description": "Description for File",
                    "format": "binary"
                  },
                  "tags": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "tags": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/IFromFileAndEnum": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "dateTimeKind",
                  "file"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "dateTimeKind": {
                    "$ref": "#/components/schemas/DateTimeKind"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "dateTimeKind": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/IFromObjectAndString": {
      "post": {
        "tags": [
          "Annotations"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PersonAnnotated"
                  },
                  {
                    "required": [
                      "tags"
                    ],
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "string"
                      }
                    }
                  }
                ]
              },
              "encoding": {
                "tags": {
                  "style": "form"
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/PersonAnnotated"
                  },
                  {
                    "required": [
                      "tags"
                    ],
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "string"
                      }
                    }
                  }
                ]
              },
              "encoding": {
                "tags": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/annotations/AsParameters": {
      "get": {
        "tags": [
          "Annotations"
        ],
        "parameters": [
          {
            "name": "paramOne",
            "in": "query",
            "description": "Description",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paramTwo",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "paramThree",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "paramFour",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "paramFive",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "paramSix",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "paramSeven",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "time"
            }
          },
          {
            "name": "paramEight",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "time"
            }
          },
          {
            "name": "paramNine",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/DateTimeKind"
            }
          },
          {
            "name": "paramTen",
            "in": "query",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/DateTimeKind"
            }
          },
          {
            "name": "paramEleven",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double"
            }
          },
          {
            "name": "paramTwelve",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "format": "double"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AsParametersRecord"
                }
              }
            }
          }
        }
      }
    },
    "/TypeWithTryParse/{tryParse}": {
      "get": {
        "tags": [
          "WebApi"
        ],
        "parameters": [
          {
            "name": "tryParse",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/weatherforecast": {
      "get": {
        "tags": [
          "WithOpenApi"
        ],
        "operationId": "GetWeatherForecast",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WeatherForecast"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/multipleForms": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Person"
                  },
                  {
                    "$ref": "#/components/schemas/Address"
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Person"
                  },
                  {
                    "$ref": "#/components/schemas/Address"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromFile": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "parameters": [
          {
            "name": "queryParameter",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromFileCollection": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "collection"
                ],
                "type": "object",
                "properties": {
                  "collection": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "collection": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromBody": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrganizationCustomExchangeRatesDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromFileAndString": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file",
                  "tags"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "tags": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "tags": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromFileAndEnum": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "dateTimeKind",
                  "file"
                ],
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  },
                  "dateTimeKind": {
                    "$ref": "#/components/schemas/DateTimeKind"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                },
                "dateTimeKind": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/WithOpenApi/IFromObjectAndString": {
      "post": {
        "tags": [
          "WithOpenApi"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Person"
                  },
                  {
                    "required": [
                      "tags"
                    ],
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "string"
                      }
                    }
                  }
                ]
              },
              "encoding": {
                "tags": {
                  "style": "form"
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Person"
                  },
                  {
                    "required": [
                      "tags"
                    ],
                    "type": "object",
                    "properties": {
                      "tags": {
                        "type": "string"
                      }
                    }
                  }
                ]
              },
              "encoding": {
                "tags": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/XmlComments/Car/{id}": {
      "get": {
        "tags": [
          "Xml"
        ],
        "summary": "Returns a specific product",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The product id",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "example": 111
          }
        ],
        "responses": {
          "200": {
            "description": "A Product Id",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Product"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Address": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddressAnnotated": {
        "type": "object",
        "properties": {
          "street": {
            "type": "string",
            "description": "Description for Street",
            "nullable": true
          },
          "city": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "zipCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AsParametersRecord": {
        "type": "object",
        "properties": {
          "paramOne": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "paramTwo": {
            "type": "string",
            "format": "uuid"
          },
          "paramThree": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "paramFour": {
            "type": "string",
            "format": "date-time"
          },
          "paramFive": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "paramSix": {
            "type": "string",
            "format": "date"
          },
          "paramSeven": {
            "type": "string",
            "format": "time",
            "nullable": true
          },
          "paramEight": {
            "type": "string",
            "format": "time"
          },
          "paramNine": {
            "$ref": "#/components/schemas/DateTimeKind"
          },
          "paramTen": {
            "$ref": "#/components/schemas/DateTimeKind"
          },
          "paramEleven": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "paramTwelve": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CurrenciesRate": {
        "required": [
          "currencyFrom",
          "currencyTo"
        ],
        "type": "object",
        "properties": {
          "currencyFrom": {
            "type": "string",
            "description": "Currency From",
            "nullable": true
          },
          "currencyTo": {
            "type": "string",
            "nullable": true
          },
          "rate": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "DateTimeKind": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "Fruit": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Description for Schema"
      },
      "OrganizationCustomExchangeRatesDto": {
        "required": [
          "currenciesRates"
        ],
        "type": "object",
        "properties": {
          "currenciesRates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrenciesRate"
            },
            "nullable": true
          },
          "isUpdated": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "Person": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PersonAnnotated": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string",
            "description": "Description for FirstName",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "Description for LastName",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Product": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Uniquely identifies the product",
            "format": "int32"
          },
          "description": {
            "type": "string",
            "description": "Describes the product",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a product"
      },
      "WeatherForecast": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "temperatureC": {
            "type": "integer",
            "format": "int32"
          },
          "summary": {
            "type": "string",
            "nullable": true
          },
          "temperatureF": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      }
    }
  },
  "tags": [
    {
      "name": "Annotations"
    },
    {
      "name": "WebApi"
    },
    {
      "name": "WithOpenApi"
    },
    {
      "name": "Xml"
    }
  ]
}