{
  "openapi": "3.1.1",
  "info": {
    "title": "myTestApi | v1",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://localhost:7085/"
    }
  ],
  "paths": {
    "/api/cities": {
      "get": {
        "tags": [
          "Cities"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CityDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CityDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CityDto"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CityDto"
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CityDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/cities/{id}": {
      "get": {
        "tags": [
          "Cities"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CityDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CityDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CityDto"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CityDto"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/CityDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/Files/{fileId}": {
      "get": {
        "tags": [
          "Files"
        ],
        "parameters": [
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/Files": {
      "post": {
        "tags": [
          "Files"
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/cities/{cityId}/PointsOfInterest": {
      "get": {
        "tags": [
          "PointsOfInterest"
        ],
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PointOfInterestDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PointOfInterestDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PointOfInterestDto"
                  }
                }
              },
              "application/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PointOfInterestDto"
                  }
                }
              },
              "text/xml": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/PointOfInterestDto"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "PointsOfInterest"
        ],
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            },
            "application/*+xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              }
            }
          }
        }
      }
    },
    "/api/cities/{cityId}/PointsOfInterest/{pointOfInterestId}": {
      "get": {
        "tags": [
          "PointsOfInterest"
        ],
        "operationId": "GetPointOfInterest",
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pointOfInterestId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/PointOfInterestDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "PointsOfInterest"
        ],
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pointOfInterestId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            },
            "application/*+xml": {
              "schema": {
                "$ref": "#/components/schemas/PointOfInterestForUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "patch": {
        "tags": [
          "PointsOfInterest"
        ],
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pointOfInterestId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            },
            "text/xml": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            },
            "application/*+xml": {
              "schema": {
                "$ref": "#/components/schemas/JsonPatchDocumentOfPointOfInterestForUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "PointsOfInterest"
        ],
        "parameters": [
          {
            "name": "cityId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "pointOfInterestId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CityDto": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "pointsOfInterest": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PointOfInterestDto"
            }
          },
          "numberOfPointsOfInterest": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "IContractResolver": {
        "type": "object"
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "JsonPatchDocumentOfPointOfInterestForUpdateDto": {
        "type": "object",
        "properties": {
          "operations": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/OperationOfPointOfInterestForUpdateDto"
            }
          },
          "contractResolver": {
            "$ref": "#/components/schemas/IContractResolver"
          }
        }
      },
      "OperationOfPointOfInterestForUpdateDto": {
        "type": "object",
        "properties": {
          "value": { },
          "operationType": {
            "$ref": "#/components/schemas/OperationType"
          },
          "path": {
            "type": [
              "null",
              "string"
            ]
          },
          "op": {
            "type": [
              "null",
              "string"
            ]
          },
          "from": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "OperationType": {
        "type": "integer"
      },
      "PointOfInterestDto": {
        "type": "object",
        "properties": {
          "id": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PointOfInterestForUpdateDto": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 50,
            "type": "string"
          },
          "description": {
            "maxLength": 200,
            "type": [
              "null",
              "string"
            ]
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "Cities"
    },
    {
      "name": "Files"
    },
    {
      "name": "PointsOfInterest"
    }
  ]
}