{ "openapi": "3.0.4", "info": { "title": "Api", "version": "1.0" }, "paths": { "/api/Auth/login": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AuthRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AuthRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthResponse" } } } } } } }, "/api/Auth/Register": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegistrationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegistrationRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RegistrationResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RegistrationResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegistrationResponse" } } } } } } }, "/api/Auth/test": { "get": { "tags": [ "Auth" ], "responses": { "200": { "description": "OK" } } } }, "/api/Photos/getAll": { "get": { "tags": [ "Photos" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } } } } } } }, "/api/Photos/getById": { "get": { "tags": [ "Photos" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PhotoDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PhotoDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PhotoDto" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Photos/getByRealEstateId": { "get": { "tags": [ "Photos" ], "parameters": [ { "name": "realEstateId", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" } } } } } } } }, "/api/Photos/create": { "post": { "tags": [ "Photos" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePhotoCommand" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreatePhotoCommand" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreatePhotoCommand" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Photos/create-multiple": { "post": { "tags": [ "Photos" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateMultiplePhotosCommand" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateMultiplePhotosCommand" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateMultiplePhotosCommand" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "array", "items": { "type": "string" } } }, "application/json": { "schema": { "type": "array", "items": { "type": "string" } } }, "text/json": { "schema": { "type": "array", "items": { "type": "string" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Photos/update": { "put": { "tags": [ "Photos" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePhotoCommand" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdatePhotoCommand" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdatePhotoCommand" } } } }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Photos/delete": { "delete": { "tags": [ "Photos" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/RealEstateProperty/getAll": { "get": { "tags": [ "RealEstateProperty" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } } } } } } }, "/api/RealEstateProperty/my-properties": { "get": { "tags": [ "RealEstateProperty" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } } } } } } }, "/api/RealEstateProperty/test-claims": { "get": { "tags": [ "RealEstateProperty" ], "responses": { "200": { "description": "OK" } } } }, "/api/RealEstateProperty/getById": { "get": { "tags": [ "RealEstateProperty" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RealEstatePropertyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RealEstatePropertyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } } } } } }, "/api/RealEstateProperty/getUserPropertiesById": { "get": { "tags": [ "RealEstateProperty" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RealEstatePropertyDto" } } } } } } } }, "/api/RealEstateProperty/create": { "post": { "tags": [ "RealEstateProperty" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateRealEstatePropertyCommand" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateRealEstatePropertyCommand" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateRealEstatePropertyCommand" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/RealEstateProperty/ChangeProperty": { "put": { "tags": [ "RealEstateProperty" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateRealEstatePropertyCommand" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateRealEstatePropertyCommand" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateRealEstatePropertyCommand" } } } }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "default": { "description": "Error", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/RealEstateProperty/DeleteProperty": { "delete": { "tags": [ "RealEstateProperty" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "default": { "description": "Error", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/User/getAll": { "get": { "tags": [ "User" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserModel" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserModel" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserModel" } } } } } } } }, "/api/User/getById": { "get": { "tags": [ "User" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserModel" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserModel" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserModel" } } } } } } }, "/api/User/delete": { "delete": { "tags": [ "User" ], "parameters": [ { "name": "id", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DeleteUserResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DeleteUserResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DeleteUserResponse" } } } } } } } }, "components": { "schemas": { "AuthRequest": { "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuthResponse": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "token": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateMultiplePhotosCommand": { "type": "object", "properties": { "imageUrls": { "type": "array", "items": { "type": "string" }, "nullable": true }, "realEstateId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreatePhotoCommand": { "type": "object", "properties": { "imageUrl": { "type": "string", "nullable": true }, "realEstateId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateRealEstatePropertyCommand": { "type": "object", "properties": { "typeId": { "type": "string", "nullable": true }, "stateId": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "userId": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "currencyId": { "type": "string", "nullable": true }, "amount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "DeleteUserResponse": { "type": "object", "properties": { "success": { "type": "boolean" }, "message": { "type": "string", "nullable": true }, "deletedUserId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PhotoDto": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "imageUrl": { "type": "string", "nullable": true }, "realEstateId": { "type": "string", "nullable": true }, "dateCreated": { "type": "string", "format": "date-time" }, "dateModified": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": { } }, "RealEstatePropertyDto": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "typeId": { "type": "string", "nullable": true }, "stateId": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "currencyId": { "type": "string", "nullable": true }, "amount": { "type": "integer", "format": "int32", "nullable": true }, "userId": { "type": "string", "nullable": true }, "photos": { "type": "array", "items": { "$ref": "#/components/schemas/PhotoDto" }, "nullable": true } }, "additionalProperties": false }, "RegistrationRequest": { "required": [ "email", "firstName", "lastName", "password", "userName" ], "type": "object", "properties": { "firstName": { "minLength": 1, "type": "string" }, "lastName": { "minLength": 1, "type": "string" }, "email": { "minLength": 1, "type": "string", "format": "email" }, "userName": { "minLength": 1, "type": "string" }, "password": { "minLength": 6, "type": "string" } }, "additionalProperties": false }, "RegistrationResponse": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdatePhotoCommand": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "imageUrl": { "type": "string", "nullable": true }, "realEstateId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateRealEstatePropertyCommand": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "typeId": { "type": "string", "nullable": true }, "stateId": { "type": "string", "nullable": true }, "address": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "startDate": { "type": "string", "format": "date-time" }, "endDate": { "type": "string", "format": "date-time" }, "currencyId": { "type": "string", "nullable": true }, "amount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "UserModel": { "type": "object", "properties": { "created": { "type": "string", "format": "date-time" }, "lastModified": { "type": "string", "format": "date-time" }, "id": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }