{ "openapi": "3.0.1", "info": { "title": "api", "version": "1.0" }, "paths": { "/admin/GetObjects": { "get": { "tags": [ "Object" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "filter", "in": "query", "schema": { "type": "string", "default": "" } }, { "name": "filterBycol", "in": "query", "schema": { "type": "string", "default": "Name" } }, { "name": "orderBycol", "in": "query", "schema": { "type": "string", "default": "ObjectId" } }, { "name": "orderByAsc", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ObjApiGetReturnType" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ObjApiGetReturnType" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ObjApiGetReturnType" } } } } } } }, "/api/Object/{Id}": { "get": { "tags": [ "Object" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Obj" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Obj" } } } } } }, "put": { "tags": [ "Object" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Obj" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Obj" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Obj" } } } } } }, "delete": { "tags": [ "Object" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Obj" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Obj" } } } } } } }, "/api/Object": { "post": { "tags": [ "Object" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Obj" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Obj" } } } }, "responses": { "200": { "description": "OK" } } } }, "/admin/GetRenovations": { "get": { "tags": [ "Renovation" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "filter", "in": "query", "schema": { "type": "string", "default": "" } }, { "name": "orderBycol", "in": "query", "schema": { "type": "string", "default": "renovationid" } }, { "name": "orderByAsc", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } } } } } } }, "/api/Renovation/room/{Id}": { "get": { "tags": [ "Renovation" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "filter", "in": "query", "schema": { "type": "string", "default": "" } }, { "name": "orderBycol", "in": "query", "schema": { "type": "string", "default": "renovationid" } }, { "name": "orderByAsc", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RenovationApiGetReturnType" } } } } } } }, "/api/Renovation/{Id}": { "get": { "tags": [ "Renovation" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Renovation" } } } } } }, "put": { "tags": [ "Renovation" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Renovation" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Renovation" } } } } } }, "delete": { "tags": [ "Renovation" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Renovation" } } } } } } }, "/api/Renovation": { "post": { "tags": [ "Renovation" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Renovation" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Renovation" } } } }, "responses": { "200": { "description": "OK" } } } }, "/admin/GetRooms": { "get": { "tags": [ "Room" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "filter", "in": "query", "schema": { "type": "string", "default": "" } }, { "name": "orderBycol", "in": "query", "schema": { "type": "string", "default": "roomid" } }, { "name": "orderByAsc", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } } } } } } }, "/api/Room/owner/{Id}": { "get": { "tags": [ "Room" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "filter", "in": "query", "schema": { "type": "string", "default": "" } }, { "name": "orderBycol", "in": "query", "schema": { "type": "string", "default": "roomid" } }, { "name": "orderByAsc", "in": "query", "schema": { "type": "boolean", "default": true } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoomApiGetReturnType" } } } } } } }, "/api/Room/{Id}": { "get": { "tags": [ "Room" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Room" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Room" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Room" } } } } } }, "put": { "tags": [ "Room" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Room" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Room" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Room" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Room" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } } }, "/api/Room": { "post": { "tags": [ "Room" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Room" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Room" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Room" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Users/update/metadata": { "patch": { "tags": [ "Users" ], "requestBody": { "content": { "application/json": { "schema": { "type": "string", "default": "" } }, "text/json": { "schema": { "type": "string", "default": "" } }, "application/*+json": { "schema": { "type": "string", "default": "" } } } }, "responses": { "200": { "description": "OK" } } } } }, "components": { "schemas": { "Obj": { "type": "object", "properties": { "objectId": { "type": "string", "format": "uuid" }, "videoUploaded": { "type": "boolean" }, "modelGenerated": { "type": "boolean" }, "width": { "type": "number", "format": "float" }, "height": { "type": "number", "format": "float" }, "length": { "type": "number", "format": "float" }, "name": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "nullable": true }, "generationDate": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "ObjApiGetReturnType": { "type": "object", "properties": { "totalCount": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "returnedObjects": { "type": "array", "items": { "$ref": "#/components/schemas/Obj" }, "nullable": true } }, "additionalProperties": false }, "Renovation": { "type": "object", "properties": { "renovationId": { "type": "string", "format": "uuid" }, "roomId": { "type": "string", "format": "uuid" }, "visibility": { "type": "boolean" }, "name": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "nullable": true }, "modificationDate": { "type": "string", "format": "date-time" }, "creationDate": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RenovationApiGetReturnType": { "type": "object", "properties": { "totalCount": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "returnedObjects": { "type": "array", "items": { "$ref": "#/components/schemas/Renovation" }, "nullable": true } }, "additionalProperties": false }, "Room": { "type": "object", "properties": { "roomId": { "type": "string", "format": "uuid" }, "ownerId": { "type": "string", "format": "uuid" }, "width": { "type": "number", "format": "float" }, "height": { "type": "number", "format": "float" }, "length": { "type": "number", "format": "float" }, "videoUploaded": { "type": "boolean" }, "modelGenerated": { "type": "boolean" }, "visibility": { "type": "boolean" }, "name": { "type": "string", "nullable": true }, "thumbnail": { "type": "string", "nullable": true }, "generationDate": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "RoomApiGetReturnType": { "type": "object", "properties": { "totalCount": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "currentPage": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "returnedObjects": { "type": "array", "items": { "$ref": "#/components/schemas/Room" }, "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "apiKey", "description": "Enter 'Bearer' followed by your JWT token.", "name": "Authorization", "in": "header" } } }, "security": [ { "Bearer": [ ] } ] }