{ "openapi": "3.0.1", "info": { "title": "AIN.API", "version": "1.0" }, "paths": { "/api/Account/signup-stepOne": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SignUpStepOneDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SignUpStepOneDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SignUpStepOneDto" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/verify-otp": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/VerifyOtpDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/VerifyOtpDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/VerifyOtpDto" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/resend-otp": { "post": { "tags": [ "Account" ], "responses": { "200": { "description": "Success" } } } }, "/api/Account/upload-idCard": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "IDCardFront": { "type": "string", "format": "binary" }, "IDCardBack": { "type": "string", "format": "binary" } } }, "encoding": { "IDCardFront": { "style": "form" }, "IDCardBack": { "style": "form" } } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/upload-profile-photo": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "ProfilePhoto": { "type": "string", "format": "binary" } } }, "encoding": { "ProfilePhoto": { "style": "form" } } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/complete-signup": { "post": { "tags": [ "Account" ], "responses": { "200": { "description": "Success" } } } }, "/api/Account/login": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthResult" } } } } } } }, "/api/Account/signOut": { "post": { "tags": [ "Account" ], "responses": { "200": { "description": "Success" } } } }, "/api/Account/forgot-password": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordDto" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/reset-password": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ResetPasswordDto" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Account/change-password": { "post": { "tags": [ "Account" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangePasswordDto" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/admin/link-authority-user": { "post": { "tags": [ "Admin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LinkAuthorityUserRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LinkAuthorityUserRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LinkAuthorityUserRequest" } } } }, "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/unlink-authority-user": { "post": { "tags": [ "Admin" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UnlinkAuthorityUserRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UnlinkAuthorityUserRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UnlinkAuthorityUserRequest" } } } }, "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/users": { "get": { "tags": [ "Admin" ], "parameters": [ { "name": "role", "in": "query", "schema": { "type": "string" } }, { "name": "search", "in": "query", "schema": { "type": "string" } }, { "name": "linkedStatus", "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": 20 } } ], "responses": { "200": { "description": "Success" } } } }, "/api/admin/users/{userId}/role": { "put": { "tags": [ "Admin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeUserRoleRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangeUserRoleRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangeUserRoleRequest" } } } }, "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/users/{userId}/deactivate": { "put": { "tags": [ "Admin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/users/{userId}/reactivate": { "put": { "tags": [ "Admin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/users/{userId}/flag": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } } } }, "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/reports/{reportId}/flag": { "post": { "tags": [ "Admin" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/FlagRequest" } } } }, "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/reports/{reportId}": { "delete": { "tags": [ "Admin" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/admin/dashboard-summary": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "Success" } } } }, "/api/admin/sos/overview": { "get": { "tags": [ "Admin" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSOverviewDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSOverviewDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSOverviewDto" } } } } } } }, "/api/Authorities/me": { "get": { "tags": [ "Authorities" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Authorities": { "post": { "tags": [ "Authorities" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorityDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorityDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateAuthorityDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } } } }, "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "pageNumber", "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/AuthorityProfileDtoListInt32ValueTuple" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDtoListInt32ValueTuple" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDtoListInt32ValueTuple" } } } } } } }, "/api/Authorities/{id}": { "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } } } }, "put": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAuthorityDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateAuthorityDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateAuthorityDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } } } }, "delete": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Authorities/by-location": { "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "latitude", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "longitude", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "radiusKm", "in": "query", "schema": { "type": "number", "format": "double", "default": 10 } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } } } } } }, "/api/Authorities/by-specialization/{specializationId}": { "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "specializationId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/AuthorityProfileDto" } } } } } } } }, "/api/Authorities/{id}/performance-metrics": { "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityMetricsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityMetricsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityMetricsDto" } } } } } } }, "/api/Authorities/{authorityId}/specialization": { "post": { "tags": [ "Authorities" ], "parameters": [ { "name": "authorityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "type": "string", "format": "uuid" } }, "text/json": { "schema": { "type": "string", "format": "uuid" } }, "application/*+json": { "schema": { "type": "string", "format": "uuid" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Authorities/{authorityId}/specialization/{specializationId}": { "delete": { "tags": [ "Authorities" ], "parameters": [ { "name": "authorityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "specializationId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Authorities/{id}/coverage-area": { "get": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } } } }, "post": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } } } }, "put": { "tags": [ "Authorities" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCoverageAreaDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { } }, "application/json": { "schema": { } }, "text/json": { "schema": { } } } } } } }, "/api/Categories": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "authorityId", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } }, "post": { "tags": [ "Categories" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } } } }, "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Categories/{id}": { "get": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } }, "put": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCategoryDto" } } } }, "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } }, "delete": { "tags": [ "Categories" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Community": { "post": { "tags": [ "Community" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CreateCommunityToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CreateCommunityToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCommunityToReturnDto" } } } } } }, "get": { "tags": [ "Community" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CommunityToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CommunityToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CommunityToReturnDto" } } } } } } }, "/api/Community/{communityId}": { "get": { "tags": [ "Community" ], "parameters": [ { "name": "communityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CommunityIdToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CommunityIdToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CommunityIdToReturnDto" } } } } } }, "put": { "tags": [ "Community" ], "parameters": [ { "name": "communityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CommunityDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UpdateCommunityToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCommunityToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateCommunityToReturnDto" } } } } } } }, "/api/Community/all": { "get": { "tags": [ "Community" ], "parameters": [ { "name": "pageNumber", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 1 } }, { "name": "pageSize", "in": "query", "schema": { "type": "integer", "format": "int32", "default": 20 } } ], "responses": { "200": { "description": "Success" }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/CommunityMember/{communityId}": { "post": { "tags": [ "CommunityMember" ], "parameters": [ { "name": "communityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddCommunityMemberByEmailDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddCommunityMemberByEmailDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddCommunityMemberByEmailDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserDetailsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserDetailsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserDetailsDto" } } } } } }, "get": { "tags": [ "CommunityMember" ], "parameters": [ { "name": "communityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailsDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailsDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailsDto" } } } } } } } }, "/api/CommunityMember/{communityId}/leave": { "delete": { "tags": [ "CommunityMember" ], "parameters": [ { "name": "communityId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/Location": { "post": { "tags": [ "Location" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LocationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LocationDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LocationDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } } } } } }, "get": { "tags": [ "Location" ], "parameters": [ { "name": "PageIndex", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "PageSize", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Sort", "in": "query", "schema": { "type": "string" } }, { "name": "City", "in": "query", "schema": { "type": "string" } }, { "name": "Town", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } } } } } } }, "/api/Location/{userId}": { "get": { "tags": [ "Location" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UserLocationToReturnDto" } } } } } } }, "/api/lookup/categories": { "get": { "tags": [ "Look-Up" ], "responses": { "200": { "description": "Success" } } } }, "/api/lookup/subcategories/{categoryId}": { "get": { "tags": [ "Look-Up" ], "parameters": [ { "name": "categoryId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Profile/my-profile": { "get": { "tags": [ "Profile" ], "responses": { "200": { "description": "Success" } } } }, "/api/Profile/update-profile": { "put": { "tags": [ "Profile" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "DisplayName": { "type": "string" }, "PhoneNumber": { "type": "string", "format": "tel" }, "ProfilePhoto": { "type": "string", "format": "binary" } } }, "encoding": { "DisplayName": { "style": "form" }, "PhoneNumber": { "style": "form" }, "ProfilePhoto": { "style": "form" } } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthResult" } } } } } } }, "/api/Reports": { "post": { "tags": [ "Reports" ], "requestBody": { "content": { "multipart/form-data": { "schema": { "type": "object", "properties": { "Title": { "type": "string" }, "Description": { "type": "string" }, "SubCategoryId": { "type": "string", "format": "uuid" }, "Visibility": { "$ref": "#/components/schemas/ReportVisibility" }, "Latitude": { "type": "number", "format": "double" }, "Longitude": { "type": "number", "format": "double" }, "Attachments": { "type": "array", "items": { "type": "string", "format": "binary" } } } }, "encoding": { "Title": { "style": "form" }, "Description": { "style": "form" }, "SubCategoryId": { "style": "form" }, "Visibility": { "style": "form" }, "Latitude": { "style": "form" }, "Longitude": { "style": "form" }, "Attachments": { "style": "form" } } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/{id}": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } }, "delete": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content" }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Reports/public": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "pageNumber", "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": { "type": "array", "items": { "$ref": "#/components/schemas/PublicReportDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PublicReportDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PublicReportDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/visible": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "pageNumber", "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": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/my-reports": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "pageNumber", "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": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/subcategory/{id}": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "pageNumber", "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": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/nearby": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "latitude", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "longitude", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "radiusKm", "in": "query", "schema": { "type": "number", "format": "double", "default": 5 } }, { "name": "pageNumber", "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": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/authority-feed": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "specializationId", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "subcategoryId", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "status", "in": "query", "schema": { "type": "string" } }, { "name": "dateFrom", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "dateTo", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "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/AuthorityFeedResultDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityFeedResultDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityFeedResultDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/map-data": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "subcategoryId", "in": "query", "schema": { "type": "string", "format": "uuid" } }, { "name": "status", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportMapPinDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportMapPinDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportMapPinDto" } } } } } } } }, "/api/Reports/{id}/notes": { "post": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateReportNoteDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateReportNoteDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateReportNoteDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TimelineEntryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TimelineEntryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TimelineEntryDto" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/{id}/timeline": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TimelineEntryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TimelineEntryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TimelineEntryDto" } } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/{id}/visibility": { "put": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateVisibilityRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateVisibilityRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateVisibilityRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/{id}/status": { "put": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateStatusRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateStatusRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateStatusRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/analytics/authority/{authorityId}": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "authorityId", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthorityAnalyticsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthorityAnalyticsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthorityAnalyticsDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/analytics/system": { "get": { "tags": [ "Reports" ], "parameters": [ { "name": "startDate", "in": "query", "schema": { "type": "string", "format": "date-time" } }, { "name": "endDate", "in": "query", "schema": { "type": "string", "format": "date-time" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SystemAnalyticsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SystemAnalyticsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SystemAnalyticsDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/Reports/statistics": { "get": { "tags": [ "Reports" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportStatisticsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportStatisticsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportStatisticsDto" } } } } } } }, "/api/Reports/{id}/assign": { "post": { "tags": [ "Reports" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AssignReportRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AssignReportRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AssignReportRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/social/reports/{reportId}/like": { "post": { "tags": [ "Social" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/social/reports/{reportId}/likes": { "get": { "tags": [ "Social" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/social/comments/{commentId}/like": { "post": { "tags": [ "Social" ], "parameters": [ { "name": "commentId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/social/reports/{reportId}/comments": { "get": { "tags": [ "Social" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportCommentDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportCommentDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/ReportCommentDto" } } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "post": { "tags": [ "Social" ], "parameters": [ { "name": "reportId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCommentDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ReportCommentDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ReportCommentDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ReportCommentDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/social/comments/{commentId}": { "delete": { "tags": [ "Social" ], "parameters": [ { "name": "commentId", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/social/users/{userId}/trust": { "get": { "tags": [ "Social" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/social/me/trust": { "get": { "tags": [ "Social" ], "responses": { "200": { "description": "Success" } } } }, "/api/SOSAlerts/trigger": { "post": { "tags": [ "SOSAlerts" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/TriggerSOSDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TriggerSOSDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/TriggerSOSDto" } } } }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}": { "get": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertDetailDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertDetailDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertDetailDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/community/{id}": { "get": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSAlertDetailDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSAlertDetailDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSAlertDetailDto" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/location": { "post": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SOSLocationUpdateDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSLocationUpdateDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SOSLocationUpdateDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSLocationDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSLocationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSLocationDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/resolve": { "put": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/cancel": { "put": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/false-alarm": { "put": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/severity": { "put": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangeSeverityRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangeSeverityRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangeSeverityRequest" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SOSAlertToReturnDto" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "409": { "description": "Conflict", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/{id}/locations": { "get": { "tags": [ "SOSAlerts" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSLocationDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSLocationDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSLocationDto" } } } } }, "401": { "description": "Unauthorized", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "403": { "description": "Forbidden", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/SOSAlerts/map-data": { "get": { "tags": [ "SOSAlerts" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSMapItemDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSMapItemDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SOSMapItemDto" } } } } } } } }, "/api/Specializations": { "post": { "tags": [ "Specializations" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } } } } } }, "get": { "tags": [ "Specializations" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SpecializationDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SpecializationDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SpecializationDto" } } } } } } } }, "/api/Specializations/{id}": { "get": { "tags": [ "Specializations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } } } } } }, "put": { "tags": [ "Specializations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } } } }, "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SpecializationDto" } } } } } }, "delete": { "tags": [ "Specializations" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success" } } } }, "/api/Subcategories": { "get": { "tags": [ "Subcategories" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } } } } } } }, "/api/Subcategories/by-category": { "get": { "tags": [ "Subcategories" ], "parameters": [ { "name": "categoryId", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SubcategoryDto" } } } } } } } }, "/api/superadmin/users/{userId}/promote-to-admin": { "put": { "tags": [ "SuperAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/api/superadmin/users/{userId}/demote-to-citizen": { "put": { "tags": [ "SuperAdmin" ], "parameters": [ { "name": "userId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Success" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ApiResponse" } } } } } } }, "/WeatherForecast": { "get": { "tags": [ "WeatherForecast" ], "operationId": "GetWeatherForecast", "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } } } } } } } }, "components": { "schemas": { "AddCommunityMemberByEmailDto": { "type": "object", "properties": { "email": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ApiResponse": { "type": "object", "properties": { "statusCode": { "type": "integer", "format": "int32" }, "message": { "type": "string", "nullable": true }, "errors": { "type": "object", "additionalProperties": { "type": "string" }, "nullable": true } }, "additionalProperties": false }, "AssignReportRequest": { "type": "object", "properties": { "assignedToUserId": { "type": "string", "nullable": true }, "notes": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AttachmentDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "fileName": { "type": "string", "nullable": true }, "filePath": { "type": "string", "nullable": true }, "contentType": { "type": "string", "nullable": true }, "fileSize": { "type": "string", "nullable": true }, "aiValidated": { "type": "boolean" } }, "additionalProperties": false }, "AuthResult": { "type": "object", "properties": { "isSuccess": { "type": "boolean" }, "errors": { "type": "object", "additionalProperties": { "type": "string", "nullable": true }, "nullable": true }, "user": { "$ref": "#/components/schemas/UserDto" }, "message": { "type": "string", "nullable": true }, "signupToken": { "type": "string", "nullable": true }, "accessToken": { "type": "string", "nullable": true }, "refreshToken": { "type": "string", "nullable": true } }, "additionalProperties": false }, "AuthorityAnalyticsDto": { "type": "object", "properties": { "authorityId": { "type": "string", "nullable": true }, "periodStart": { "type": "string", "format": "date-time" }, "periodEnd": { "type": "string", "format": "date-time" }, "totalAssigned": { "type": "integer", "format": "int32" }, "totalResolved": { "type": "integer", "format": "int32" }, "totalPending": { "type": "integer", "format": "int32" }, "avgResponseTimeHours": { "type": "number", "format": "double" }, "avgResolutionTimeHours": { "type": "number", "format": "double" }, "resolutionRate": { "type": "number", "format": "double" }, "overdueCases": { "type": "integer", "format": "int32" }, "slaMissedRate": { "type": "number", "format": "double" }, "reportsByCategory": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "reportsByStatus": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "dailyTrend": { "type": "array", "items": { "$ref": "#/components/schemas/DailyTrendDto" }, "nullable": true } }, "additionalProperties": false }, "AuthorityFeedResultDto": { "type": "object", "properties": { "reports": { "type": "array", "items": { "$ref": "#/components/schemas/ReportWithAttachmentsDto" }, "nullable": true }, "totalCount": { "type": "integer", "format": "int32" }, "page": { "type": "integer", "format": "int32" }, "pageSize": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "AuthorityMetricsDto": { "type": "object", "properties": { "authorityId": { "type": "string", "format": "uuid" }, "authorityName": { "type": "string", "nullable": true }, "activeAssignments": { "type": "integer", "format": "int32" }, "resolvedCount": { "type": "integer", "format": "int32" }, "avgResponseTimeMinutes": { "type": "number", "format": "double" }, "resolutionRate": { "type": "number", "format": "double" }, "coverageAreaKm2": { "type": "number", "format": "double" } }, "additionalProperties": false }, "AuthorityPerformanceDto": { "type": "object", "properties": { "authorityName": { "type": "string", "nullable": true }, "reportsAssigned": { "type": "integer", "format": "int32" }, "reportsResolved": { "type": "integer", "format": "int32" }, "avgResolutionTimeHours": { "type": "number", "format": "double" }, "resolutionRate": { "type": "number", "format": "double" } }, "additionalProperties": false }, "AuthorityProfileDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "jurisdictionRadiusKm": { "type": "number", "format": "double", "nullable": true }, "status": { "type": "integer", "format": "int32" }, "createdAt": { "type": "string", "format": "date-time" }, "userId": { "type": "string", "nullable": true }, "specializations": { "type": "array", "items": { "$ref": "#/components/schemas/SpecializationDto" }, "nullable": true }, "coverageAreas": { "type": "array", "items": { "$ref": "#/components/schemas/CoverageAreaDto" }, "nullable": true } }, "additionalProperties": false }, "AuthorityProfileDtoListInt32ValueTuple": { "type": "object", "additionalProperties": false }, "AuthoritySOSStatsDto": { "type": "object", "properties": { "authorityName": { "type": "string", "nullable": true }, "active": { "type": "integer", "format": "int32" }, "resolvedToday": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "ChangePasswordDto": { "required": [ "confirmPassword", "newPassword" ], "type": "object", "properties": { "oldPassword": { "type": "string", "nullable": true }, "newPassword": { "minLength": 5, "type": "string", "format": "password" }, "confirmPassword": { "minLength": 1, "type": "string", "format": "password" } }, "additionalProperties": false }, "ChangeSeverityRequest": { "type": "object", "properties": { "severity": { "$ref": "#/components/schemas/SOSSeverity" } }, "additionalProperties": false }, "ChangeUserRoleRequest": { "required": [ "role" ], "type": "object", "properties": { "role": { "minLength": 1, "type": "string" } }, "additionalProperties": false }, "CommunityDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CommunityIdToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "createdById": { "type": "string", "nullable": true }, "createdByName": { "type": "string", "nullable": true }, "lastModifiedAt": { "type": "string", "format": "date-time", "nullable": true }, "lastModifiedById": { "type": "string", "nullable": true }, "lastModifiedByName": { "type": "string", "nullable": true }, "members": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailsDto" }, "nullable": true } }, "additionalProperties": false }, "CommunityToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CoverageAreaDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "areaName": { "type": "string", "nullable": true }, "centerLatitude": { "type": "number", "format": "double" }, "centerLongitude": { "type": "number", "format": "double" }, "radiusKm": { "type": "number", "format": "double", "nullable": true } }, "additionalProperties": false }, "CreateAuthorityDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "jurisdictionRadiusKm": { "type": "number", "format": "double", "nullable": true } }, "additionalProperties": false }, "CreateCategoryDto": { "required": [ "authorityId", "name" ], "type": "object", "properties": { "name": { "maxLength": 200, "minLength": 1, "type": "string" }, "description": { "type": "string", "nullable": true }, "iconName": { "type": "string", "nullable": true }, "authorityId": { "type": "string", "format": "uuid" } }, "additionalProperties": false }, "CreateCommentDto": { "required": [ "content" ], "type": "object", "properties": { "content": { "maxLength": 1000, "minLength": 1, "type": "string" }, "parentCommentId": { "type": "string", "format": "uuid", "nullable": true } }, "additionalProperties": false }, "CreateCommunityToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "createdById": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "userDetails": { "$ref": "#/components/schemas/UserDetailsDto" } }, "additionalProperties": false }, "CreateCoverageAreaDto": { "required": [ "areaName" ], "type": "object", "properties": { "areaName": { "minLength": 1, "type": "string" }, "centerLatitude": { "maximum": 90, "minimum": -90, "type": "number", "format": "double" }, "centerLongitude": { "maximum": 180, "minimum": -180, "type": "number", "format": "double" }, "radiusKm": { "maximum": 500, "minimum": 0.1, "type": "number", "format": "double" }, "polygon": { "type": "array", "items": { "type": "array", "items": { "type": "array", "items": { "type": "number", "format": "double" } } }, "nullable": true } }, "additionalProperties": false }, "CreateReportNoteDto": { "required": [ "content" ], "type": "object", "properties": { "content": { "maxLength": 2000, "minLength": 1, "type": "string" } }, "additionalProperties": false }, "DailyTrendDto": { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" }, "count": { "type": "integer", "format": "int32" }, "resolvedCount": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "FlagRequest": { "required": [ "reason" ], "type": "object", "properties": { "reason": { "maxLength": 500, "minLength": 1, "type": "string" } }, "additionalProperties": false }, "ForgotPasswordDto": { "type": "object", "properties": { "email": { "type": "string", "format": "email", "nullable": true } }, "additionalProperties": false }, "LinkAuthorityUserRequest": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true }, "authorityId": { "type": "string", "format": "uuid" } }, "additionalProperties": false }, "LocationDto": { "type": "object", "properties": { "city": { "type": "string", "nullable": true }, "town": { "type": "string", "nullable": true }, "street": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" } }, "additionalProperties": false }, "LoginDto": { "required": [ "password" ], "type": "object", "properties": { "email": { "type": "string", "format": "email", "nullable": true }, "password": { "minLength": 5, "type": "string" } }, "additionalProperties": false }, "ProblemDetails": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true }, "detail": { "type": "string", "nullable": true }, "instance": { "type": "string", "nullable": true } }, "additionalProperties": { } }, "PublicReportDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "title": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "visibility": { "type": "string", "nullable": true }, "category": { "type": "string", "nullable": true }, "subCategory": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/AttachmentDto" }, "nullable": true }, "location": { "nullable": true }, "locationName": { "type": "string", "nullable": true }, "locationMapUrl": { "type": "string", "nullable": true }, "reporter": { "$ref": "#/components/schemas/ReporterInfoDto" } }, "additionalProperties": false }, "ReportCommentDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "reportId": { "type": "string", "format": "uuid", "nullable": true }, "authorId": { "type": "string", "nullable": true }, "authorName": { "type": "string", "nullable": true }, "authorPhotoUrl": { "type": "string", "nullable": true }, "content": { "type": "string", "nullable": true }, "parentCommentId": { "type": "string", "format": "uuid", "nullable": true }, "likeCount": { "type": "integer", "format": "int32" }, "isLikedByCurrentUser": { "type": "boolean" }, "isDeleted": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time" }, "editedAt": { "type": "string", "format": "date-time", "nullable": true }, "replies": { "type": "array", "items": { "$ref": "#/components/schemas/ReportCommentDto" }, "nullable": true } }, "additionalProperties": false }, "ReportMapPinDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "locationName": { "type": "string", "nullable": true }, "locationMapUrl": { "type": "string", "nullable": true }, "title": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "visibility": { "type": "string", "nullable": true }, "subcategoryName": { "type": "string", "nullable": true }, "categoryName": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "ReportStatisticsDto": { "type": "object", "properties": { "totalReports": { "type": "integer", "format": "int64" }, "publicReports": { "type": "integer", "format": "int64" }, "confidentialReports": { "type": "integer", "format": "int64" }, "anonymousReports": { "type": "integer", "format": "int64" }, "countByStatus": { "type": "object", "additionalProperties": { "type": "integer", "format": "int64" }, "nullable": true }, "averageReportAgeInDays": { "type": "number", "format": "double" }, "reportsInLast24Hours": { "type": "integer", "format": "int64" }, "reportsWithAttachments": { "type": "integer", "format": "int64" }, "totalAttachments": { "type": "integer", "format": "int64" } }, "additionalProperties": false }, "ReportStatus": { "enum": [ 0, 1, 2, 3 ], "type": "integer", "format": "int32" }, "ReportVisibility": { "enum": [ 0, 1, 2 ], "type": "integer", "format": "int32" }, "ReportWithAttachmentsDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "title": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "status": { "type": "string", "nullable": true }, "visibility": { "type": "string", "nullable": true }, "category": { "type": "string", "nullable": true }, "subCategory": { "type": "string", "nullable": true }, "authorityName": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" }, "attachments": { "type": "array", "items": { "$ref": "#/components/schemas/AttachmentDto" }, "nullable": true }, "location": { "nullable": true }, "locationName": { "type": "string", "nullable": true }, "locationMapUrl": { "type": "string", "nullable": true }, "reporter": { "$ref": "#/components/schemas/ReporterInfoDto" } }, "additionalProperties": false }, "ReporterInfoDto": { "type": "object", "properties": { "id": { "type": "string", "nullable": true }, "name": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "profilePhotoUrl": { "type": "string", "nullable": true }, "nationalId": { "type": "string", "nullable": true }, "idCardUrl": { "type": "string", "nullable": true }, "idCardBackUrl": { "type": "string", "nullable": true } }, "additionalProperties": false }, "ResetPasswordDto": { "required": [ "confirmPassword", "newPassword" ], "type": "object", "properties": { "email": { "type": "string", "format": "email", "nullable": true }, "token": { "type": "string", "nullable": true }, "newPassword": { "minLength": 5, "type": "string", "format": "password" }, "confirmPassword": { "minLength": 1, "type": "string", "format": "password" } }, "additionalProperties": false }, "SOSAlertDetailDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "status": { "$ref": "#/components/schemas/SOSStatus" }, "severity": { "$ref": "#/components/schemas/SOSSeverity" }, "message": { "type": "string", "nullable": true }, "initiatorUserId": { "type": "string", "nullable": true }, "communityId": { "type": "string", "format": "uuid" }, "createdAtUtc": { "type": "string", "format": "date-time" }, "expiresAtUtc": { "type": "string", "format": "date-time", "nullable": true }, "resolvedAtUtc": { "type": "string", "format": "date-time", "nullable": true }, "recentLocations": { "type": "array", "items": { "$ref": "#/components/schemas/SOSLocationDto" }, "nullable": true }, "totalLocationUpdates": { "type": "integer", "format": "int32" }, "reporter": { "$ref": "#/components/schemas/SOSReporterIdentityDto" } }, "additionalProperties": false }, "SOSAlertToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "status": { "$ref": "#/components/schemas/SOSStatus" }, "severity": { "$ref": "#/components/schemas/SOSSeverity" }, "message": { "type": "string", "nullable": true }, "initiatorUserId": { "type": "string", "nullable": true }, "communityId": { "type": "string", "format": "uuid" }, "createdAtUtc": { "type": "string", "format": "date-time" }, "expiresAtUtc": { "type": "string", "format": "date-time", "nullable": true }, "resolvedAtUtc": { "type": "string", "format": "date-time", "nullable": true }, "recentLocations": { "type": "array", "items": { "$ref": "#/components/schemas/SOSLocationDto" }, "nullable": true }, "totalLocationUpdates": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "SOSLocationDto": { "type": "object", "properties": { "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "accuracyMeters": { "type": "number", "format": "double", "nullable": true }, "altitudeMeters": { "type": "number", "format": "double", "nullable": true }, "recordedAtUtc": { "type": "string", "format": "date-time" }, "locationName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SOSLocationUpdateDto": { "type": "object", "properties": { "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "accuracyMeters": { "type": "number", "format": "double", "nullable": true }, "altitudeMeters": { "type": "number", "format": "double", "nullable": true } }, "additionalProperties": false }, "SOSMapItemDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "severity": { "type": "string", "nullable": true }, "reporterName": { "type": "string", "nullable": true }, "reporterPhotoUrl": { "type": "string", "nullable": true }, "triggeredAt": { "type": "string", "format": "date-time" }, "locationName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SOSOverviewDto": { "type": "object", "properties": { "activeAlerts": { "type": "integer", "format": "int32" }, "resolvedToday": { "type": "integer", "format": "int32" }, "falseAlarmsToday": { "type": "integer", "format": "int32" }, "avgResponseMinutes": { "type": "number", "format": "double" }, "alertsByAuthority": { "type": "array", "items": { "$ref": "#/components/schemas/AuthoritySOSStatsDto" }, "nullable": true } }, "additionalProperties": false }, "SOSReporterIdentityDto": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true }, "fullName": { "type": "string", "nullable": true }, "profilePhotoUrl": { "type": "string", "nullable": true }, "idCardPhotoUrl": { "type": "string", "nullable": true }, "nationalId": { "type": "string", "nullable": true }, "phoneNumber": { "type": "string", "nullable": true }, "lastKnownLatitude": { "type": "number", "format": "double", "nullable": true }, "lastKnownLongitude": { "type": "number", "format": "double", "nullable": true }, "lastKnownLocationName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SOSSeverity": { "enum": [ 0, 1, 2 ], "type": "integer", "format": "int32" }, "SOSStatus": { "enum": [ 0, 1, 2, 3, 4 ], "type": "integer", "format": "int32" }, "SignUpStepOneDto": { "type": "object", "properties": { "displayName": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "email": { "type": "string", "format": "email", "nullable": true }, "phoneNumber": { "type": "string", "format": "tel", "nullable": true }, "ssn": { "type": "string", "nullable": true }, "password": { "minLength": 5, "type": "string", "format": "password", "nullable": true }, "confirmPassword": { "type": "string", "format": "password", "nullable": true } }, "additionalProperties": false }, "SpecializationDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "icon": { "type": "string", "nullable": true }, "description": { "type": "string", "nullable": true }, "categoryId": { "type": "string", "format": "uuid", "nullable": true }, "categoryName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SubcategoryDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "categoryId": { "type": "string", "format": "uuid" }, "categoryName": { "type": "string", "nullable": true } }, "additionalProperties": false }, "SystemAnalyticsDto": { "type": "object", "properties": { "periodStart": { "type": "string", "format": "date-time" }, "periodEnd": { "type": "string", "format": "date-time" }, "totalReports": { "type": "integer", "format": "int32" }, "totalResolved": { "type": "integer", "format": "int32" }, "totalPending": { "type": "integer", "format": "int32" }, "reportsByStatus": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "reportsByCategory": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "reportsByVisibility": { "type": "object", "additionalProperties": { "type": "integer", "format": "int32" }, "nullable": true }, "avgResponseTimeHours": { "type": "number", "format": "double" }, "avgResolutionTimeHours": { "type": "number", "format": "double" }, "overallResolutionRate": { "type": "number", "format": "double" }, "dailyTrend": { "type": "array", "items": { "$ref": "#/components/schemas/DailyTrendDto" }, "nullable": true }, "authorityPerformance": { "type": "object", "additionalProperties": { "$ref": "#/components/schemas/AuthorityPerformanceDto" }, "nullable": true } }, "additionalProperties": false }, "TimelineEntryDto": { "type": "object", "properties": { "type": { "type": "string", "nullable": true }, "event": { "type": "string", "nullable": true }, "note": { "type": "string", "nullable": true }, "actorName": { "type": "string", "nullable": true }, "createdAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "TriggerSOSDto": { "type": "object", "properties": { "communityId": { "type": "string", "format": "uuid" }, "latitude": { "type": "number", "format": "double" }, "longitude": { "type": "number", "format": "double" }, "accuracyMeters": { "type": "number", "format": "double", "nullable": true }, "severity": { "$ref": "#/components/schemas/SOSSeverity" }, "message": { "type": "string", "nullable": true }, "durationMinutes": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UnlinkAuthorityUserRequest": { "type": "object", "properties": { "userId": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateAuthorityDto": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "phone": { "type": "string", "nullable": true }, "type": { "type": "string", "nullable": true }, "latitude": { "type": "number", "format": "double", "nullable": true }, "longitude": { "type": "number", "format": "double", "nullable": true }, "jurisdictionRadiusKm": { "type": "number", "format": "double", "nullable": true }, "status": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UpdateCommunityToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string", "nullable": true }, "lastModifiedById": { "type": "string", "nullable": true }, "lastModifiedName": { "type": "string", "nullable": true }, "lastModifiedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "UpdateStatusRequest": { "type": "object", "properties": { "status": { "$ref": "#/components/schemas/ReportStatus" } }, "additionalProperties": false }, "UpdateVisibilityRequest": { "type": "object", "properties": { "visibility": { "$ref": "#/components/schemas/ReportVisibility" } }, "additionalProperties": false }, "UserDetailsDto": { "type": "object", "properties": { "usrId": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "role": { "type": "string", "nullable": true }, "userLocation": { "$ref": "#/components/schemas/LocationDto" }, "lastLocationUpdatedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "UserDto": { "type": "object", "properties": { "displayName": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "token": { "type": "string", "nullable": true }, "refreshToken": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UserLocationToReturnDto": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "location": { "$ref": "#/components/schemas/LocationDto" }, "userId": { "type": "string", "nullable": true }, "userName": { "type": "string", "nullable": true }, "lastLocationUpdatedAt": { "type": "string", "format": "date-time" } }, "additionalProperties": false }, "VerifyOtpDto": { "type": "object", "properties": { "otpCode": { "type": "string", "nullable": true } }, "additionalProperties": false }, "WeatherForecast": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "temperatureC": { "type": "integer", "format": "int32" }, "temperatureF": { "type": "integer", "format": "int32", "readOnly": true }, "summary": { "type": "string", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "description": "JWT Authorization header using the Bearer scheme. Example: \"Bearer {token}\"", "scheme": "Bearer", "bearerFormat": "JWT" } } }, "security": [ { "Bearer": [ ] } ] }