{ "openapi": "3.0.1", "info": { "title": "AdsPortal API", "version": "v1" }, "paths": { "/admin/ads": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } }, { "name": "status", "in": "query", "schema": { "type": "string" } }, { "name": "sort", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdminAdListItemDtoPagedResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdminAdListItemDtoPagedResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdminAdListItemDtoPagedResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/users": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDtoPagedResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDtoPagedResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDtoPagedResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/logs": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdminAuditLogDtoPagedResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdminAuditLogDtoPagedResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdminAuditLogDtoPagedResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/restrictions/types": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RestrictionTypeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RestrictionTypeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/RestrictionTypeDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/users/{id}/restrictions": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { } }, "text/json": { "schema": { } }, "application/*+json": { "schema": { } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/users/{id}/restrictions/{type}": { "delete": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "type", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RestrictionActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/deadletters": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/outbox": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "status", "in": "query", "schema": { "type": "string" } }, { "name": "correlationId", "in": "query", "schema": { "type": "string" } }, { "name": "eventType", "in": "query", "schema": { "type": "string" } }, { "name": "page", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 50 } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/outbox/summary": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "windowSeconds", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 60 } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/deadletters/{id}/retry": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/deadletters/{id}": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/deadletters/{id}/payload": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int64" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/deadletters/retry-bulk": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "eventType", "in": "query", "schema": { "type": "string" } }, { "name": "maxAttemptCount", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "integer", "format": "int32" } }, "text/json": { "schema": { "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "type": "integer", "format": "int32" } } } }, "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/users/{id}/roles": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RoleDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoleDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RoleDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/users/{id}/roles/{role}": { "delete": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "role", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RoleActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}/approve": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}/reject": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { } }, "text/json": { "schema": { } }, "application/*+json": { "schema": { } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}/send-to-moderation": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}": { "delete": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}/restore": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/admin/ads/{id}/hard": { "delete": { "tags": [ "Admin" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdStatusActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/ads/{id}/moderation": { "patch": { "tags": [ "Ads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateModerationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateModerationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateModerationRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/ads/moderation": { "get": { "tags": [ "Ads" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ModerationAdDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ModerationAdDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ModerationAdDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/ads": { "get": { "tags": [ "Ads" ], "parameters": [ { "name": "Search", "in": "query", "schema": { "type": "string" } }, { "name": "Location", "in": "query", "schema": { "type": "string" } }, { "name": "Category", "in": "query", "schema": { "type": "string" } }, { "name": "IncludeChildren", "in": "query", "schema": { "type": "boolean" } }, { "name": "PriceFrom", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "PriceTo", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "DateFrom", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "DateTo", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "UserId", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Status", "in": "query", "schema": { "type": "string" } }, { "name": "Type", "in": "query", "schema": { "type": "string" } }, { "name": "Page", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "PageSize", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Sort", "in": "query", "schema": { "type": "string" } }, { "name": "Cursor", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdListItemDtoPagedResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdListItemDtoPagedResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdListItemDtoPagedResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "post": { "tags": [ "Ads" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "required": [ "CategoryId", "LocationId", "Title" ], "type": "object", "properties": { "Title": { "type": "string" }, "Description": { "type": "string" }, "Price": { "type": "number", "format": "double" }, "IsNegotiable": { "type": "boolean" }, "CategoryId": { "type": "integer", "format": "int32" }, "ListingType": { "type": "string" }, "LocationId": { "type": "integer", "format": "int32" }, "AttributeValues": { "type": "array", "items": { "$ref": "#/components/schemas/UpsertAdAttributeValueDto" } }, "Files": { "type": "array", "items": { "type": "string", "format": "binary" } }, "files": { "type": "array", "items": { "type": "string", "format": "binary" } }, "mainImageIndex": { "type": "integer", "format": "int32" } } }, "encoding": { "Title": { "style": "form" }, "Description": { "style": "form" }, "Price": { "style": "form" }, "IsNegotiable": { "style": "form" }, "CategoryId": { "style": "form" }, "ListingType": { "style": "form" }, "LocationId": { "style": "form" }, "AttributeValues": { "style": "form" }, "Files": { "style": "form" }, "files": { "style": "form" }, "mainImageIndex": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/ads/{id}": { "get": { "tags": [ "Ads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AdDetailsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AdDetailsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AdDetailsDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "delete": { "tags": [ "Ads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAdResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "patch": { "tags": [ "Ads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "additionalProperties": { } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { } } }, "application/*+json": { "schema": { "type": "object", "additionalProperties": { } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/ads/{id}/upload": { "post": { "tags": [ "Ads" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string", "format": "binary" } } } }, "encoding": { "files": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UploadFilesResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UploadFilesResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UploadFilesResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/register": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/login": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthSessionResponseDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/refresh": { "post": { "tags": [ "Auth" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RefreshRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RefreshRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RefreshRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthRefreshResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthRefreshResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthRefreshResponseDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/logout": { "post": { "tags": [ "Auth" ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/logout-all": { "post": { "tags": [ "Auth" ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/sessions": { "get": { "tags": [ "Auth" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthSessionDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthSessionDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthSessionDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/auth/sessions/{id}": { "delete": { "tags": [ "Auth" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/me/restrictions": { "get": { "tags": [ "Auth" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MeRestrictionDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MeRestrictionDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/MeRestrictionDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/attribute-lookup": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "ids", "in": "query", "schema": { "type": "string" } }, { "name": "onlyFilters", "in": "query", "schema": { "type": "boolean", "default": false } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } }, "application/json": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } }, "text/json": { "schema": { "type": "object", "additionalProperties": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories": { "get": { "tags": [ "Categories" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "post": { "tags": [ "Categories" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/tree": { "get": { "tags": [ "Categories" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryTreeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryTreeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryTreeDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/{id}/attributes": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "post": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/{id}/filters": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/{id}/view": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryViewDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryViewDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryViewDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/{id}": { "put": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "delete": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/categories/attributes/{attributeId}": { "put": { "tags": [ "Categories" ], "parameters": [ { "name": "attributeId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpsertCategoryAttributeDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryAttributeDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "delete": { "tags": [ "Categories" ], "parameters": [ { "name": "attributeId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations": { "post": { "tags": [ "Conversations" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateConversationRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateConversationRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateConversationRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "get": { "tags": [ "Conversations" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ConversationDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ConversationDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ConversationDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/messages": { "get": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "count", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 10 } }, { "name": "before", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "since", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessagesDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessagesDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessagesDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendMessageRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/messages/upload": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "text": { "type": "string" }, "replyToMessageId": { "type": "integer", "format": "int32" }, "files": { "type": "array", "items": { "type": "string", "format": "binary" } }, "clientTag": { "type": "string" } } }, "encoding": { "text": { "style": "form" }, "replyToMessageId": { "style": "form" }, "files": { "style": "form" }, "clientTag": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/by-ad/{adId}/messages": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "adId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SendMessageRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/by-ad/{adId}/messages/upload": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "adId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "text": { "type": "string" }, "replyToMessageId": { "type": "integer", "format": "int32" }, "files": { "type": "array", "items": { "type": "string", "format": "binary" } } } }, "encoding": { "text": { "style": "form" }, "replyToMessageId": { "style": "form" }, "files": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/read": { "patch": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "lastSeenMessageId", "in": "query", "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/mute": { "patch": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/archive": { "patch": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/messages/{messageId}": { "patch": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "messageId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/EditMessageRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EditMessageRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/EditMessageRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "delete": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "messageId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/messages/{messageId}/attachments": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "messageId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string", "format": "binary" } } } }, "encoding": { "files": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}/attachments": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string", "format": "binary" } }, "caption": { "type": "string" } } }, "encoding": { "files": { "style": "form" }, "caption": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/{id}": { "delete": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "get": { "tags": [ "Conversations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationStateDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationStateDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationStateDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/conversations/by-ad/{adId}/attachments": { "post": { "tags": [ "Conversations" ], "parameters": [ { "name": "adId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string", "format": "binary" } }, "caption": { "type": "string" } } }, "encoding": { "files": { "style": "form" }, "caption": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ConversationMessageActionDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/locations": { "get": { "tags": [ "Locations" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LocationTreeNodeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LocationTreeNodeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LocationTreeNodeDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/notifications": { "get": { "tags": [ "Notifications" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/NotificationsResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/NotificationsResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/NotificationsResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/notifications/read": { "post": { "tags": [ "Notifications" ], "requestBody": { "content": { "application/json": { "schema": { "type": "array", "items": { "type": "integer", "format": "int32" } } }, "text/json": { "schema": { "type": "array", "items": { "type": "integer", "format": "int32" } } }, "application/*+json": { "schema": { "type": "array", "items": { "type": "integer", "format": "int32" } } } } }, "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{id}": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserProfileResponseDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserProfileResponseDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserProfileResponseDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "patch": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { } }, "text/json": { "schema": { } }, "application/*+json": { "schema": { } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PatchResultDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{id}/favorites": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FavoriteAdDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FavoriteAdDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FavoriteAdDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "post": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "integer", "format": "int32" } }, "text/json": { "schema": { "type": "integer", "format": "int32" } }, "application/*+json": { "schema": { "type": "integer", "format": "int32" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FavoriteMutationDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FavoriteMutationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FavoriteMutationDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{targetId}/blocks": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "targetId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } }, "delete": { "tags": [ "Users" ], "parameters": [ { "name": "targetId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/blocks": { "get": { "tags": [ "Users" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BlockListItemDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BlockListItemDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/BlockListItemDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{id}/favorites/{adId}": { "delete": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "adId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{id}/ads": { "get": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAdDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAdDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserAdDto" } } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } }, "/users/{id}/upload-avatar": { "post": { "tags": [ "Users" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "avatar": { "type": "string", "format": "binary" } } }, "encoding": { "avatar": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AvatarUploadDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AvatarUploadDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AvatarUploadDto" } } } }, "400": { "description": "Bad Request", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "403": { "description": "Forbidden", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "404": { "description": "Not Found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } }, "401": { "description": "Unauthorized", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ApiError" } } } } } } } }, "components": { "schemas": { "AdAttributeValueDto": { "type": "object", "properties": { "attributeId": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "type": { "$ref": "#/components/schemas/AttributeType" }, "value": { "type": "string" } }, "additionalProperties": false }, "AdCategoryDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "parentId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "AdDetailsDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "isNegotiable": { "type": "boolean" }, "locationId": { "type": "integer", "format": "int32" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "listingType": { "type": "string", "nullable": true }, "mainImageId": { "type": "integer", "format": "int32", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "moderationStatus": { "$ref": "#/components/schemas/AdStatus" }, "rejectionReason": { "type": "string", "nullable": true }, "deletedAt": { "type": "string", "format": "date-time", "nullable": true }, "category": { "$ref": "#/components/schemas/AdCategoryDto" }, "user": { "$ref": "#/components/schemas/AdOwnerDto" }, "images": { "type": "array", "items": { "$ref": "#/components/schemas/AdImageDto" } }, "attributeValues": { "type": "array", "items": { "$ref": "#/components/schemas/AdAttributeValueDto" } }, "isFavorite": { "type": "boolean" } }, "additionalProperties": false }, "AdDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "listingType": { "type": "string", "nullable": true }, "isNegotiable": { "type": "boolean" }, "locationId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "status": { "$ref": "#/components/schemas/AdStatus" }, "rejectionReason": { "type": "string", "nullable": true }, "deletedAt": { "type": "string", "format": "date-time", "nullable": true }, "viewsCount": { "type": "integer", "format": "int32" }, "favoritesCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AdImageDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "adId": { "type": "integer", "format": "int32" }, "filePath": { "type": "string" }, "sortOrder": { "type": "integer", "format": "int32" }, "isMain": { "type": "boolean" } }, "additionalProperties": false }, "AdListItemDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "isNegotiable": { "type": "boolean" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "locationId": { "type": "integer", "format": "int32" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "listingType": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "userId": { "type": "integer", "format": "int32" }, "viewsCount": { "type": "integer", "format": "int32" }, "favoritesCount": { "type": "integer", "format": "int32" }, "mainImagePath": { "type": "string", "nullable": true }, "isFavorite": { "type": "boolean" }, "moderationStatus": { "$ref": "#/components/schemas/AdStatus" } }, "additionalProperties": false }, "AdListItemDtoPagedResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/AdListItemDto" } }, "total": { "type": "integer", "format": "int32" }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "nextCursor": { "type": "string", "nullable": true }, "hasMore": { "type": "boolean" } }, "additionalProperties": false }, "AdOwnerDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userLogin": { "type": "string" }, "userName": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "userPhoneNumber": { "type": "string", "nullable": true }, "avatarPath": { "type": "string", "nullable": true }, "roles": { "type": "array", "items": { "type": "string" } }, "createdAt": { "type": "string", "format": "date-time" }, "lastActivityAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "AdStatus": { "enum": [ "active", "pendingModeration", "rejected", "deleted" ], "type": "string" }, "AdStatusActionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "status": { "$ref": "#/components/schemas/AdStatus" } }, "additionalProperties": false }, "AdminAdListItemDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "listingType": { "type": "string", "nullable": true }, "isNegotiable": { "type": "boolean" }, "locationId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "moderationStatus": { "$ref": "#/components/schemas/AdStatus" }, "rejectionReason": { "type": "string", "nullable": true }, "deletedAt": { "type": "string", "format": "date-time", "nullable": true }, "viewsCount": { "type": "integer", "format": "int32" }, "favoritesCount": { "type": "integer", "format": "int32" }, "owner": { "$ref": "#/components/schemas/AdminAdOwnerDto" }, "category": { "$ref": "#/components/schemas/AdCategoryDto" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "mainImagePath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AdminAdListItemDtoPagedResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/AdminAdListItemDto" } }, "total": { "type": "integer", "format": "int32" }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "nextCursor": { "type": "string", "nullable": true }, "hasMore": { "type": "boolean" } }, "additionalProperties": false }, "AdminAdOwnerDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userLogin": { "type": "string" }, "userName": { "type": "string", "nullable": true }, "avatarPath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AdminAuditLogDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "actorUserId": { "type": "integer", "format": "int32" }, "targetUserId": { "type": "integer", "format": "int32", "nullable": true }, "action": { "type": "string" }, "targetType": { "type": "string", "nullable": true }, "targetId": { "type": "integer", "format": "int32", "nullable": true }, "reason": { "type": "string", "nullable": true }, "oldValue": { "type": "string", "nullable": true }, "newValue": { "type": "string", "nullable": true }, "timestamp": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "AdminAuditLogDtoPagedResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/AdminAuditLogDto" } }, "total": { "type": "integer", "format": "int32" }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "nextCursor": { "type": "string", "nullable": true }, "hasMore": { "type": "boolean" } }, "additionalProperties": false }, "ApiError": { "type": "object", "properties": { "code": { "type": "string" }, "message": { "type": "string" }, "details": { "nullable": true, "readOnly": true }, "issues": { "type": "array", "items": { "$ref": "#/components/schemas/PatchIssueDto" }, "nullable": true, "readOnly": true } }, "additionalProperties": false }, "AttributeType": { "enum": [ "string", "int", "bool", "decimal", "enum" ], "type": "string" }, "AuthRefreshResponseDto": { "type": "object", "properties": { "accessToken": { "type": "string" }, "refreshToken": { "type": "string" } }, "additionalProperties": false }, "AuthSessionDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "deviceName": { "type": "string", "nullable": true }, "ipAddress": { "type": "string", "nullable": true }, "lastActivityAt": { "type": "string", "format": "date-time" }, "createdAt": { "type": "string", "format": "date-time" }, "isCurrent": { "type": "boolean" } }, "additionalProperties": false }, "AuthSessionResponseDto": { "type": "object", "properties": { "accessToken": { "type": "string" }, "refreshToken": { "type": "string" }, "userId": { "type": "integer", "format": "int32" }, "userLogin": { "type": "string" }, "userName": { "type": "string", "nullable": true }, "avatarPath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AvatarUploadDto": { "type": "object", "properties": { "avatarPath": { "type": "string" } }, "additionalProperties": false }, "BlockListItemDto": { "type": "object", "properties": { "targetUserId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "user": { "$ref": "#/components/schemas/BlockUserDto" } }, "additionalProperties": false }, "BlockUserDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "username": { "type": "string" }, "avatarUrl": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CategoryAttributeDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "categoryId": { "type": "integer", "format": "int32" }, "slug": { "type": "string" }, "name": { "type": "string" }, "type": { "$ref": "#/components/schemas/AttributeType" }, "isRequired": { "type": "boolean" }, "isFilter": { "type": "boolean" }, "options": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeOptionDto" } } }, "additionalProperties": false }, "CategoryAttributeOptionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "attributeId": { "type": "integer", "format": "int32" }, "value": { "type": "string" } }, "additionalProperties": false }, "CategoryDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "isLeaf": { "type": "boolean" }, "path": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CategoryTreeDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "parentId": { "type": "integer", "format": "int32", "nullable": true }, "isLeaf": { "type": "boolean" }, "path": { "type": "string", "nullable": true }, "attributes": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryTreeDto" } } }, "additionalProperties": false }, "CategoryViewDto": { "type": "object", "properties": { "category": { "$ref": "#/components/schemas/CategoryDto" }, "path": { "type": "array", "items": { "type": "integer", "format": "int32" } }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } }, "filters": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryAttributeDto" } } }, "additionalProperties": false }, "ChatAttachment": { "type": "object", "properties": { "url": { "type": "string" }, "type": { "$ref": "#/components/schemas/MessageType" } }, "additionalProperties": false }, "ChatAttachmentDto": { "type": "object", "properties": { "url": { "type": "string" }, "type": { "$ref": "#/components/schemas/MessageType" }, "fileName": { "type": "string", "nullable": true }, "mimeType": { "type": "string", "nullable": true }, "size": { "type": "integer", "format": "int64", "nullable": true }, "thumbnailUrl": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ConversationActionDto": { "type": "object", "properties": { "conversationId": { "type": "integer", "format": "int32" }, "message": { "type": "string" }, "conversation": { "$ref": "#/components/schemas/ConversationDto" } }, "additionalProperties": false }, "ConversationAdDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string" }, "mainImagePath": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "isNegotiable": { "type": "boolean" }, "status": { "$ref": "#/components/schemas/AdStatus" } }, "additionalProperties": false }, "ConversationCompanionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "avatarPath": { "type": "string", "nullable": true }, "lastActivityAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "ConversationDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "companion": { "$ref": "#/components/schemas/ConversationCompanionDto" }, "ad": { "$ref": "#/components/schemas/ConversationAdDto" }, "lastMessage": { "$ref": "#/components/schemas/ConversationLastMessageDto" }, "unreadCount": { "type": "integer", "format": "int32" }, "firstUnreadMessageId": { "type": "integer", "format": "int32", "nullable": true }, "lastMessageAt": { "type": "string", "format": "date-time", "nullable": true }, "isClosed": { "type": "boolean" }, "isMuted": { "type": "boolean" }, "isArchived": { "type": "boolean" }, "totalMessagesCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "ConversationLastMessageDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32", "nullable": true }, "type": { "$ref": "#/components/schemas/MessageType" }, "authorId": { "type": "integer", "format": "int32", "nullable": true }, "text": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "ConversationMessageActionDto": { "type": "object", "properties": { "conversationId": { "type": "integer", "format": "int32" }, "message": { "$ref": "#/components/schemas/ConversationMessageDto" } }, "additionalProperties": false }, "ConversationMessageDto": { "type": "object", "properties": { "conversationId": { "type": "integer", "format": "int32" }, "id": { "type": "integer", "format": "int32" }, "type": { "$ref": "#/components/schemas/MessageType" }, "authorId": { "type": "integer", "format": "int32" }, "author": { "$ref": "#/components/schemas/MessageAuthorDto" }, "createdAt": { "type": "string", "format": "date-time" }, "text": { "type": "string", "nullable": true }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/ChatAttachmentDto" } }, "replyToMessageId": { "type": "integer", "format": "int32", "nullable": true }, "replyPreview": { "$ref": "#/components/schemas/ReplyPreviewDto" }, "editedAt": { "type": "string", "format": "date-time", "nullable": true }, "deletedAt": { "type": "string", "format": "date-time", "nullable": true }, "clientTag": { "type": "string", "nullable": true }, "isRead": { "type": "boolean" } }, "additionalProperties": false }, "ConversationMessagesDto": { "type": "object", "properties": { "conversation": { "$ref": "#/components/schemas/ConversationDto" }, "messages": { "type": "array", "items": { "$ref": "#/components/schemas/ConversationMessageDto" } }, "hasMore": { "type": "boolean" }, "anchorMessageId": { "type": "integer", "format": "int32", "nullable": true }, "myLastSeenMessageId": { "type": "integer", "format": "int32", "nullable": true }, "otherLastSeenMessageId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "ConversationStateDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "adId": { "type": "integer", "format": "int32" }, "sellerId": { "type": "integer", "format": "int32" }, "buyerId": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "isClosed": { "type": "boolean" }, "lastMessageTimestamp": { "type": "string", "format": "date-time", "nullable": true }, "lastMessageType": { "$ref": "#/components/schemas/MessageType" }, "lastMessageText": { "type": "string", "nullable": true }, "lastMessageAuthorId": { "type": "integer", "format": "int32", "nullable": true }, "totalMessagesCount": { "type": "integer", "format": "int32" }, "hasUnread": { "type": "boolean" }, "unreadCount": { "type": "integer", "format": "int32" }, "myLastSeenMessageId": { "type": "integer", "format": "int32", "nullable": true }, "otherLastSeenMessageId": { "type": "integer", "format": "int32", "nullable": true }, "isMuted": { "type": "boolean" }, "isArchived": { "type": "boolean" } }, "additionalProperties": false }, "CreateAdResultDto": { "type": "object", "properties": { "message": { "type": "string" }, "adId": { "type": "integer", "format": "int32" }, "images": { "type": "array", "items": { "$ref": "#/components/schemas/AdImageDto" }, "nullable": true } }, "additionalProperties": false }, "CreateConversationRequest": { "type": "object", "properties": { "adId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "EditMessageRequest": { "type": "object", "properties": { "text": { "type": "string", "nullable": true }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/ChatAttachment" }, "nullable": true } }, "additionalProperties": false }, "FavoriteAdDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string" }, "price": { "type": "number", "format": "double", "nullable": true }, "isNegotiable": { "type": "boolean" }, "mainImagePath": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "viewsCount": { "type": "integer", "format": "int32" }, "favoritesCount": { "type": "integer", "format": "int32" }, "status": { "$ref": "#/components/schemas/AdStatus" }, "isFavorite": { "type": "boolean" }, "userId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "FavoriteMutationDto": { "type": "object", "properties": { "adId": { "type": "integer", "format": "int32" }, "addedAt": { "type": "string", "format": "date-time", "nullable": true } }, "additionalProperties": false }, "LocationRef": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/LocationType" }, "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LocationTreeNodeDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string" }, "type": { "$ref": "#/components/schemas/LocationType" }, "children": { "type": "array", "items": { "$ref": "#/components/schemas/LocationTreeNodeDto" } } }, "additionalProperties": false }, "LocationType": { "enum": [ "region", "city", "district" ], "type": "string" }, "LoginRequest": { "type": "object", "properties": { "userLogin": { "type": "string" }, "userPassword": { "type": "string" } }, "additionalProperties": false }, "MeRestrictionDto": { "type": "object", "properties": { "type": { "type": "string" }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true }, "reason": { "type": "string", "nullable": true } }, "additionalProperties": false }, "MessageAuthorDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userName": { "type": "string", "nullable": true }, "userLogin": { "type": "string" }, "avatarPath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "MessageType": { "enum": [ "text", "image", "file", "link", "audio", "video", "document" ], "type": "string" }, "ModerationAdDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "locationId": { "type": "integer", "format": "int32" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "listingType": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "userId": { "type": "integer", "format": "int32" }, "userName": { "type": "string", "nullable": true }, "userLogin": { "type": "string", "nullable": true }, "mainImagePath": { "type": "string", "nullable": true } }, "additionalProperties": false }, "NotificationDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "type": { "type": "string" }, "isRead": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "adId": { "type": "integer", "format": "int32", "nullable": true }, "adTitle": { "type": "string", "nullable": true }, "reason": { "type": "string", "nullable": true }, "mainImagePath": { "type": "string", "nullable": true }, "actorName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "NotificationsResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/NotificationDto" } } }, "additionalProperties": false }, "PatchIssueDto": { "type": "object", "properties": { "code": { "type": "string" }, "field": { "type": "string", "nullable": true }, "message": { "type": "string" } }, "additionalProperties": false }, "PatchResultDto": { "type": "object", "properties": { "success": { "type": "boolean" }, "updated": { "type": "array", "items": { "type": "string" } }, "skipped": { "type": "array", "items": { "$ref": "#/components/schemas/PatchIssueDto" } }, "errors": { "type": "array", "items": { "$ref": "#/components/schemas/PatchIssueDto" } } }, "additionalProperties": false }, "RefreshRequest": { "type": "object", "properties": { "refreshToken": { "type": "string" } }, "additionalProperties": false }, "RegisterRequest": { "type": "object", "properties": { "userLogin": { "type": "string" }, "userPassword": { "type": "string" } }, "additionalProperties": false }, "ReplyPreviewDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "authorId": { "type": "integer", "format": "int32" }, "authorName": { "type": "string", "nullable": true }, "textSnippet": { "type": "string", "nullable": true } }, "additionalProperties": false }, "RestrictionActionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "restriction": { "type": "string" }, "reason": { "type": "string", "nullable": true }, "expiresAt": { "type": "string", "format": "date-time", "nullable": true }, "revokeSessions": { "type": "boolean" } }, "additionalProperties": false }, "RestrictionTypeDto": { "type": "object", "properties": { "key": { "type": "string" }, "label": { "type": "string" } }, "additionalProperties": false }, "RoleActionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "role": { "type": "string" } }, "additionalProperties": false }, "RoleDto": { "type": "object", "properties": { "role": { "type": "string" } }, "additionalProperties": false }, "SendMessageRequest": { "type": "object", "properties": { "type": { "$ref": "#/components/schemas/MessageType" }, "text": { "type": "string", "nullable": true }, "replyToMessageId": { "type": "integer", "format": "int32", "nullable": true }, "clientTag": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateModerationRequest": { "required": [ "status" ], "type": "object", "properties": { "status": { "$ref": "#/components/schemas/AdStatus" }, "reason": { "maxLength": 500, "type": "string", "nullable": true } }, "additionalProperties": false }, "UploadFilesResultDto": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }, "UpsertAdAttributeValueDto": { "type": "object", "properties": { "attributeId": { "type": "integer", "format": "int32" }, "value": { "type": "string" } }, "additionalProperties": false }, "UpsertCategoryAttributeDto": { "type": "object", "properties": { "slug": { "type": "string" }, "name": { "type": "string" }, "type": { "$ref": "#/components/schemas/AttributeType" }, "isRequired": { "type": "boolean" }, "isFilter": { "type": "boolean" }, "options": { "type": "array", "items": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "UpsertCategoryDto": { "type": "object", "properties": { "name": { "type": "string" }, "parentId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UserAdDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "title": { "type": "string" }, "description": { "type": "string", "nullable": true }, "price": { "type": "number", "format": "double", "nullable": true }, "locationId": { "type": "integer", "format": "int32" }, "location": { "$ref": "#/components/schemas/LocationRef" }, "listingType": { "type": "string", "nullable": true }, "isNegotiable": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "updatedAt": { "type": "string", "format": "date-time" }, "viewsCount": { "type": "integer", "format": "int32" }, "favoritesCount": { "type": "integer", "format": "int32" }, "moderationStatus": { "$ref": "#/components/schemas/AdStatus" }, "rejectionReason": { "type": "string", "nullable": true }, "deletedAt": { "type": "string", "format": "date-time", "nullable": true }, "userId": { "type": "integer", "format": "int32" }, "category": { "$ref": "#/components/schemas/AdCategoryDto" }, "mainImagePath": { "type": "string", "nullable": true }, "isFavorite": { "type": "boolean" } }, "additionalProperties": false }, "UserDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userLogin": { "type": "string" }, "userName": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "userPhoneNumber": { "type": "string", "nullable": true }, "avatarPath": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "lastActivityAt": { "type": "string", "format": "date-time" }, "roles": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }, "UserDtoPagedResultDto": { "type": "object", "properties": { "items": { "type": "array", "items": { "$ref": "#/components/schemas/UserDto" } }, "total": { "type": "integer", "format": "int32" }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" }, "totalPages": { "type": "integer", "format": "int32" }, "nextCursor": { "type": "string", "nullable": true }, "hasMore": { "type": "boolean" } }, "additionalProperties": false }, "UserProfileDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "userLogin": { "type": "string" }, "userName": { "type": "string", "nullable": true }, "userEmail": { "type": "string", "nullable": true }, "userPhoneNumber": { "type": "string", "nullable": true }, "avatarPath": { "type": "string", "nullable": true }, "roles": { "type": "array", "items": { "type": "string" } }, "isOnline": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "lastActivityAt": { "type": "string", "format": "date-time" }, "ads": { "type": "array", "items": { "$ref": "#/components/schemas/UserAdDto" } } }, "additionalProperties": false }, "UserProfileResponseDto": { "type": "object", "properties": { "userProfile": { "$ref": "#/components/schemas/UserProfileDto" }, "currentUserFavorites": { "type": "array", "items": { "type": "integer", "format": "int32" }, "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "Bearer {token}", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ] }