{
  "openapi": "3.0.1",
  "info": {
    "title": "FlowersUK | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://valerianflowers.uk/"
    }
  ],
  "paths": {
    "/api/flowers": {
      "get": {
        "tags": [
          "Flowers"
        ],
        "summary": "Returns all flowers in the database as JSON.",
        "operationId": "GetAllFlowers",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FlowerDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/flowers/{id}": {
      "get": {
        "tags": [
          "Flowers"
        ],
        "summary": "Returns a single flower by its numeric ID.",
        "operationId": "GetFlowerById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlowerDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/Account/PerformExternalLogin": {
      "post": {
        "tags": [
          "FlowersUK"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "provider",
                  "returnUrl"
                ],
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "returnUrl": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "required": [
                  "provider",
                  "returnUrl"
                ],
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "returnUrl": {
                        "type": "string"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Account/Logout": {
      "post": {
        "tags": [
          "FlowersUK"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "returnUrl"
                ],
                "type": "object",
                "properties": {
                  "returnUrl": {
                    "type": "string"
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "required": [
                  "returnUrl"
                ],
                "type": "object",
                "properties": {
                  "returnUrl": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Account/Manage/LinkExternalLogin": {
      "post": {
        "tags": [
          "FlowersUK"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "provider"
                ],
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string"
                  }
                }
              }
            },
            "application/x-www-form-urlencoded": {
              "schema": {
                "required": [
                  "provider"
                ],
                "type": "object",
                "properties": {
                  "provider": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Account/Manage/DownloadPersonalData": {
      "post": {
        "tags": [
          "FlowersUK"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "FlowerDto": {
        "required": [
          "flowerId",
          "englishName",
          "genus",
          "species",
          "family",
          "order",
          "description",
          "distribution",
          "locationFound",
          "countryOfOrigin",
          "mainColor",
          "imageUrl"
        ],
        "type": "object",
        "properties": {
          "flowerId": {
            "type": "integer",
            "format": "int32"
          },
          "englishName": {
            "type": "string"
          },
          "genus": {
            "type": "string"
          },
          "species": {
            "type": "string"
          },
          "family": {
            "type": "string"
          },
          "order": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "distribution": {
            "type": "string",
            "nullable": true
          },
          "locationFound": {
            "type": "string"
          },
          "countryOfOrigin": {
            "type": "string"
          },
          "mainColor": {
            "type": "string"
          },
          "imageUrl": {
            "type": "string"
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Flowers"
    },
    {
      "name": "FlowersUK"
    }
  ]
}