{ "openapi": "3.0.1", "info": { "title": "Api | v1", "version": "1.0.0" }, "servers": [{ "url": "http://localhost:5158/" }], "paths": { "/api/CourtCase": { "get": { "tags": ["CourtCase"], "operationId": "GetAllCourtCases", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseResponse" } } } } } } }, "post": { "tags": ["CourtCase"], "operationId": "CreateCourtCases", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseRequest" } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "string", "format": "uuid" } }, "application/json": { "schema": { "type": "string", "format": "uuid" } }, "text/json": { "schema": { "type": "string", "format": "uuid" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/CourtCase/case-numbers": { "get": { "tags": ["CourtCase"], "operationId": "GetAllCaseNumbers", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseNumberResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseNumberResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseNumberResponse" } } } } } } } }, "/api/CourtCase/{id}": { "get": { "tags": ["CourtCase"], "operationId": "GetCourtCasesById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CourtCaseResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CourtCaseResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CourtCaseResponse" } } } }, "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" } } } } } }, "put": { "tags": ["CourtCase"], "operationId": "UpdateCourtCases", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["CourtCase"], "operationId": "DeleteCourtCases", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/CourtCase/court-case-information/{id}": { "get": { "tags": ["CourtCase"], "operationId": "GetCourtCaseInformation", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CourtCaseInformationResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CourtCaseInformationResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CourtCaseInformationResult" } } } }, "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/CourtCaseDate": { "get": { "tags": ["CourtCaseDate"], "operationId": "GetAllCourtCaseDates", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } } } } } }, "post": { "tags": ["CourtCaseDate"], "operationId": "CreateCourtCaseDates", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseDateRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseDateRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddCourtCaseDateRequest" } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/CourtCaseDate/{id}": { "get": { "tags": ["CourtCaseDate"], "operationId": "GetCourtCaseDatesById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CourtCaseDateResponse" } } } }, "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" } } } } } }, "put": { "tags": ["CourtCaseDate"], "operationId": "UpdateCourtCaseDates", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseDateRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseDateRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateCourtCaseDateRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["CourtCaseDate"], "operationId": "DeleteCourtCaseDates", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/CourtCaseDate/cancelled/{id}": { "patch": { "tags": ["CourtCaseDate"], "operationId": "SetToCancelled", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/CourtCaseDate/complete/{id}": { "patch": { "tags": ["CourtCaseDate"], "operationId": "SetToComplete", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/Dashboard": { "get": { "tags": ["Dashboard"], "operationId": "GetDashboardInformation", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DashBoardResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DashBoardResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DashBoardResult" } } } } } } }, "/api/Document/upload": { "post": { "tags": ["Document"], "operationId": "UploadDocument", "requestBody": { "content": { "application/x-www-form-urlencoded": { "schema": { "required": ["name", "caseId"], "type": "object", "allOf": [ { "type": "object", "properties": { "ContentType": { "type": "string" }, "ContentDisposition": { "type": "string" }, "Headers": { "type": "object", "additionalProperties": { "type": "array", "items": { "type": "string" } } }, "Length": { "type": "integer", "format": "int64" }, "Name": { "type": "string" }, "FileName": { "type": "string" } } }, { "type": "object", "properties": { "name": { "type": "string" } } }, { "type": "object", "properties": { "caseId": { "type": "string" } } } ] } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Document/{id}/download": { "get": { "tags": ["Document"], "operationId": "DownloadDocument", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FileStreamResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FileStreamResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FileStreamResult" } } } }, "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/Document": { "get": { "tags": ["Document"], "operationId": "GetAllDocument", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/DocumentResponse" } } } } } } } }, "/api/Document/{id}": { "put": { "tags": ["Document"], "operationId": "UpdateDocument", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateDocumentRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateDocumentRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateDocumentRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["Document"], "operationId": "DeleteDocument", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/Email": { "get": { "tags": ["Email"], "operationId": "GetEmails", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } } } }, "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" } } } } } }, "post": { "tags": ["Email"], "operationId": "CreateEmail", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddEmailRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddEmailRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddEmailRequest" } } }, "required": true }, "responses": { "201": { "description": "Created" }, "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/Email/{id}": { "get": { "tags": ["Email"], "operationId": "GetEmailById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/EmailResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/EmailResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/EmailResponse" } } } }, "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" } } } } } }, "put": { "tags": ["Email"], "operationId": "UpdateEmail", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "status", "in": "query", "schema": { "$ref": "#/components/schemas/EmailStatus" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/EmailResponse" } } } } }, "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/Firm": { "get": { "tags": ["Firm"], "operationId": "GetFirmById", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FirmResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FirmResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FirmResponse" } } } }, "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" } } } } } }, "post": { "tags": ["Firm"], "operationId": "CreateFirm", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddFirmRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddFirmRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddFirmRequest" } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "string", "format": "uuid" } }, "application/json": { "schema": { "type": "string", "format": "uuid" } }, "text/json": { "schema": { "type": "string", "format": "uuid" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Firm/{id}": { "put": { "tags": ["Firm"], "operationId": "UpdateFirm", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateFirmRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateFirmRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateFirmRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["Firm"], "operationId": "DeleteFirm", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/Invoice": { "get": { "tags": ["Invoice"], "operationId": "GetAllInvoices", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceResponse" } } } } } } }, "post": { "tags": ["Invoice"], "operationId": "CreateInvoices", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddInvoiceRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddInvoiceRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddInvoiceRequest" } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Invoice/invoice-numbers": { "get": { "tags": ["Invoice"], "operationId": "GetAllInvoiceNumbers", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceNumberResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceNumberResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceNumberResponse" } } } } } } } }, "/api/Invoice/{id}": { "get": { "tags": ["Invoice"], "operationId": "GetInvoicesById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/InvoiceResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InvoiceResponse" } } } }, "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" } } } } } }, "put": { "tags": ["Invoice"], "operationId": "UpdateInvoices", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["Invoice"], "operationId": "DeleteInvoices", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/Invoice/pdf/download/{id}": { "get": { "tags": ["Invoice"], "operationId": "GeneratePDF", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/pdf": { "schema": { "$ref": "#/components/schemas/FileResult" } } } }, "404": { "description": "Not Found", "content": { "application/pdf": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Invoice/pdf/{id}": { "get": { "tags": ["Invoice"], "operationId": "CreateLink", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } }, "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/Invoice/pdf/view/{id}": { "get": { "tags": ["Invoice"], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } }, { "name": "exp", "in": "query", "schema": { "type": "integer", "format": "int64" } }, { "name": "sig", "in": "query", "schema": { "type": "string" } }, { "name": "firmId", "in": "query", "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "application/pdf": {} } } } } }, "/api/Invoice/status/{id}": { "put": { "tags": ["Invoice"], "operationId": "UpdateInvoicesStatus", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceStatusRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceStatusRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceStatusRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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/InvoiceItem": { "get": { "tags": ["InvoiceItem"], "operationId": "GetAllInvoiceItems", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceItemResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceItemResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceItemResponse" } } } } } } }, "post": { "tags": ["InvoiceItem"], "operationId": "CreateInvoiceItems", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddInvoiceItemRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddInvoiceItemRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddInvoiceItemRequest" } } }, "required": true }, "responses": { "201": { "description": "Created", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/InvoiceItem/{id}": { "get": { "tags": ["InvoiceItem"], "operationId": "GetInvoiceItemsById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/InvoiceItemResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/InvoiceItemResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/InvoiceItemResponse" } } } }, "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" } } } } } }, "put": { "tags": ["InvoiceItem"], "operationId": "UpdateInvoiceItems", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceItemRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceItemRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateInvoiceItemRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } }, "delete": { "tags": ["InvoiceItem"], "operationId": "DeleteInvoiceItems", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string", "format": "uuid" } } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Lawyer": { "get": { "tags": ["Lawyer"], "operationId": "GetAllLawyers", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerResponse" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerResponse" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerResponse" } } } } } } }, "post": { "tags": ["Lawyer"], "operationId": "CreateLawyers", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/AddLawyerRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AddLawyerRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/AddLawyerRequest" } } }, "required": true }, "responses": { "201": { "description": "Created" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Lawyer/{id}": { "get": { "tags": ["Lawyer"], "operationId": "GetLawyersById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LawyerResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LawyerResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LawyerResponse" } } } }, "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" } } } } } }, "put": { "tags": ["Lawyer"], "operationId": "UpdateLawyers", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateLawyerRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateLawyerRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateLawyerRequest" } } }, "required": true }, "responses": { "204": { "description": "No Content" }, "400": { "description": "Bad Request", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } }, "delete": { "tags": ["Lawyer"], "operationId": "DeleteLawyers", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "204": { "description": "No Content" }, "404": { "description": "Not Found", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ProblemDetails" } } } } } } }, "/api/Lawyer/report/{id}": { "get": { "tags": ["Lawyer"], "operationId": "GetLawyerReportInformation", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LawyerReportResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LawyerReportResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LawyerReportResponse" } } } }, "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/User/login": { "post": { "tags": ["User"], "operationId": "Login", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/LoginResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } } }, "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" } } } } } } }, "/api/User/register": { "post": { "tags": ["User"], "operationId": "Register", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/RegisterRequest" } } }, "required": true }, "responses": { "200": { "description": "OK" }, "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" } } } } } } }, "/api/User/forgot-password": { "post": { "tags": ["User"], "operationId": "ForgotPassword", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ForgotPasswordRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } } }, "/api/User/change-password": { "post": { "tags": ["User"], "operationId": "ChangePassword", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordRequest" } }, "text/json": { "schema": { "$ref": "#/components/schemas/ChangePasswordRequest" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/ChangePasswordRequest" } } }, "required": true }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } } }, "/api/User/{id}": { "get": { "tags": ["User"], "operationId": "GetById", "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" }, "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" } } } } } } }, "/api/User/confirm-email": { "get": { "tags": ["User"], "operationId": "ConfirmEmail", "parameters": [ { "name": "token", "in": "query", "schema": { "type": "string" } }, { "name": "email", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK" }, "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" } } } } } } }, "/api/User/confirm-email/resend/{email}": { "get": { "tags": ["User"], "operationId": "ResendConfirmEmail", "parameters": [ { "name": "email", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } }, "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" } } } } } } } }, "components": { "schemas": { "AddCourtCaseDateRequest": { "required": ["date", "title", "description", "caseId", "type"], "type": "object", "properties": { "date": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "caseId": { "type": "string", "format": "uuid" }, "type": { "$ref": "#/components/schemas/CourtCaseDateTypes" } } }, "AddCourtCaseRequest": { "required": [ "caseNumber", "location", "plaintiff", "defendant", "status", "type", "outcome" ], "type": "object", "properties": { "caseNumber": { "type": "string" }, "location": { "type": "string" }, "plaintiff": { "type": "string" }, "defendant": { "type": "string" }, "status": { "$ref": "#/components/schemas/CourtCaseStatus" }, "type": { "$ref": "#/components/schemas/CourtCaseTypes" }, "outcome": { "$ref": "#/components/schemas/CourtCaseOutcomes" } } }, "AddEmailRequest": { "required": [ "to", "cc", "bcc", "subject", "body", "isHtml", "attachmentIds" ], "type": "object", "properties": { "to": { "type": "array", "items": { "type": "string" } }, "cc": { "type": "array", "items": { "type": "string" }, "nullable": true }, "bcc": { "type": "array", "items": { "type": "string" }, "nullable": true }, "subject": { "type": "string" }, "body": { "type": "string" }, "isHtml": { "type": "boolean" }, "attachmentIds": { "type": "array", "items": { "type": "string", "format": "uuid" }, "nullable": true } } }, "AddFirmRequest": { "required": [ "name", "address", "telephone", "fax", "mobile", "email", "attorneyAdmissionDate", "advocateAdmissionDate", "accountName", "bank", "branchCode", "accountNumber" ], "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "telephone": { "type": "string" }, "fax": { "type": "string" }, "mobile": { "type": "string" }, "email": { "type": "string" }, "attorneyAdmissionDate": { "type": "string" }, "advocateAdmissionDate": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" } } }, "AddInvoiceItemRequest": { "required": [ "invoiceId", "name", "hours", "costPerHour", "date", "caseId", "clientName", "refference" ], "type": "object", "properties": { "invoiceId": { "type": "string" }, "name": { "type": "string" }, "hours": { "type": "integer", "format": "int32" }, "costPerHour": { "type": "number", "format": "double" }, "date": { "type": "string" }, "caseId": { "type": "string", "format": "uuid" }, "clientName": { "type": "string", "nullable": true }, "refference": { "type": "string", "nullable": true } } }, "AddInvoiceRequest": { "required": [ "invoiceNumber", "invoiceDate", "clientName", "reference", "caseName", "accountName", "bank", "branchCode", "accountNumber", "status" ], "type": "object", "properties": { "invoiceNumber": { "type": "string" }, "invoiceDate": { "type": "string", "format": "date-time" }, "clientName": { "type": "string" }, "reference": { "type": "string" }, "caseName": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" }, "status": { "$ref": "#/components/schemas/InvoiceStatus" } } }, "AddLawyerRequest": { "required": ["email", "name", "surname", "mobileNumber", "specialty"], "type": "object", "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "surname": { "type": "string" }, "mobileNumber": { "type": "string" }, "specialty": { "type": "integer", "format": "int32" } } }, "ChangePasswordRequest": { "required": ["token", "password"], "type": "object", "properties": { "token": { "type": "string" }, "password": { "type": "string" } } }, "CourtCaseDateItemResponse": { "required": [ "id", "date", "title", "caseNumber", "caseId", "courtCaseDateType", "subtitle", "description", "status" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "date": { "type": "string" }, "title": { "type": "string" }, "caseNumber": { "type": "string" }, "caseId": { "type": "string", "format": "uuid" }, "courtCaseDateType": { "$ref": "#/components/schemas/CourtCaseDateTypes" }, "subtitle": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string" } } }, "CourtCaseDateResponse": { "required": [ "overdueItems", "completionRate", "upcomingEvents", "changeFromLastMonth", "deadlineCase", "courtCaseDateItems" ], "type": "object", "properties": { "overdueItems": { "type": "integer", "format": "int32" }, "completionRate": { "type": "integer", "format": "int32" }, "upcomingEvents": { "type": "integer", "format": "int32" }, "changeFromLastMonth": { "type": "number", "format": "float" }, "deadlineCase": { "$ref": "#/components/schemas/CourtCaseDateItemResponse" }, "courtCaseDateItems": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseDateItemResponse" } } } }, "CourtCaseDateTypes": { "type": "integer" }, "CourtCaseInformationQueryDatesResult": { "required": ["date", "dateType", "description"], "type": "object", "properties": { "date": { "type": "string", "format": "date-time" }, "dateType": { "$ref": "#/components/schemas/CourtCaseDateTypes" }, "description": { "type": "string" } } }, "CourtCaseInformationQueryDocumentsResult": { "required": ["title", "fileType", "dateFiled"], "type": "object", "properties": { "title": { "type": "string" }, "fileType": { "type": "string" }, "dateFiled": { "type": "string", "format": "date-time" } } }, "CourtCaseInformationQueryInvoicesResult": { "required": ["invoiceNumber", "amount", "status"], "type": "object", "properties": { "invoiceNumber": { "type": "string" }, "amount": { "type": "number", "format": "double" }, "status": { "$ref": "#/components/schemas/InvoiceStatus" } } }, "CourtCaseInformationQueryLawyersResult": { "required": ["name", "mobileNumber", "email"], "type": "object", "properties": { "name": { "type": "string" }, "mobileNumber": { "type": "string" }, "email": { "type": "string" } } }, "CourtCaseInformationResult": { "required": [ "caseId", "caseNumber", "location", "plaintiff", "defendant", "caseType", "caseOutcomes", "createdAt", "lastModified", "dates", "documents", "invoices", "lawyers" ], "type": "object", "properties": { "caseId": { "type": "string", "format": "uuid" }, "caseNumber": { "type": "string" }, "location": { "type": "string" }, "plaintiff": { "type": "string" }, "defendant": { "type": "string" }, "caseType": { "$ref": "#/components/schemas/CourtCaseTypes" }, "caseOutcomes": { "$ref": "#/components/schemas/CourtCaseOutcomes" }, "createdAt": { "type": "string", "format": "date-time" }, "lastModified": { "type": "string", "format": "date-time" }, "dates": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseInformationQueryDatesResult" } }, "documents": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseInformationQueryDocumentsResult" } }, "invoices": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseInformationQueryInvoicesResult" } }, "lawyers": { "type": "array", "items": { "$ref": "#/components/schemas/CourtCaseInformationQueryLawyersResult" } } } }, "CourtCaseNumberResponse": { "required": ["caseId", "caseNumber"], "type": "object", "properties": { "caseId": { "type": "string" }, "caseNumber": { "type": "string" } } }, "CourtCaseOutcomes": { "type": "integer" }, "CourtCaseResponse": { "required": [ "id", "caseNumber", "status", "location", "nextDate", "plaintiff", "type" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "caseNumber": { "type": "string" }, "status": { "$ref": "#/components/schemas/CourtCaseStatus" }, "location": { "type": "string" }, "nextDate": { "type": "string" }, "plaintiff": { "type": "string" }, "type": { "$ref": "#/components/schemas/CourtCaseTypes" } } }, "CourtCaseStatus": { "type": "integer" }, "CourtCaseTypes": { "type": "integer" }, "DashBoardResult": { "required": [ "totalCases", "totalInvoices", "upcomingDates", "documentsStored", "recentCases", "upcomingCases" ], "type": "object", "properties": { "totalCases": { "type": "integer", "format": "int32" }, "totalInvoices": { "type": "number", "format": "double" }, "upcomingDates": { "type": "integer", "format": "int32" }, "documentsStored": { "type": "integer", "format": "int32" }, "recentCases": { "type": "array", "items": { "$ref": "#/components/schemas/RecentCaseActivityResult" } }, "upcomingCases": { "type": "array", "items": { "$ref": "#/components/schemas/UpcomingCourtCaseActivityResult" } } } }, "DocumentResponse": { "required": ["caseNumber", "client", "folders"], "type": "object", "properties": { "caseNumber": { "type": "string" }, "client": { "type": "string" }, "folders": { "type": "array", "items": { "$ref": "#/components/schemas/FolderResponse" } } } }, "EmailResponse": { "required": [ "toAddresses", "ccAddresses", "bccAddresses", "subject", "body", "attachmentIds", "status", "errorMessage", "sentAt" ], "type": "object", "properties": { "toAddresses": { "type": "string" }, "ccAddresses": { "type": "string", "nullable": true }, "bccAddresses": { "type": "string", "nullable": true }, "subject": { "type": "string" }, "body": { "type": "string" }, "attachmentIds": { "type": "string", "nullable": true }, "status": { "$ref": "#/components/schemas/EmailStatus" }, "errorMessage": { "type": "string", "nullable": true }, "sentAt": { "type": "string", "format": "date-time", "nullable": true } } }, "EmailStatus": { "type": "integer" }, "EntityTagHeaderValue": { "type": "object", "properties": { "tag": { "$ref": "#/components/schemas/StringSegment" }, "isWeak": { "type": "boolean" } }, "nullable": true }, "FileResult": { "type": "object", "properties": { "contentType": { "type": "string", "nullable": true }, "fileDownloadName": { "type": "string", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "entityTag": { "$ref": "#/components/schemas/EntityTagHeaderValue" }, "enableRangeProcessing": { "type": "boolean" } } }, "FileStreamResult": { "type": "object", "properties": { "fileStream": { "$ref": "#/components/schemas/Stream" }, "contentType": { "type": "string", "nullable": true }, "fileDownloadName": { "type": "string", "nullable": true }, "lastModified": { "type": "string", "format": "date-time", "nullable": true }, "entityTag": { "$ref": "#/components/schemas/EntityTagHeaderValue" }, "enableRangeProcessing": { "type": "boolean" } } }, "FirmResponse": { "required": [ "id", "name", "address", "telephone", "fax", "mobile", "email", "attorneyAdmissionDate", "advocateAdmissionDate", "accountName", "bank", "branchCode", "accountNumber", "dateCreated" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "address": { "type": "string" }, "telephone": { "type": "string" }, "fax": { "type": "string" }, "mobile": { "type": "string" }, "email": { "type": "string" }, "attorneyAdmissionDate": { "type": "string" }, "advocateAdmissionDate": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" }, "dateCreated": { "type": "string", "format": "date-time" } } }, "FolderResponse": { "required": [ "description", "contentType", "version", "date", "folders" ], "type": "object", "properties": { "description": { "type": "string" }, "contentType": { "type": "string" }, "version": { "type": "string" }, "date": { "type": "string" }, "folders": { "type": "array", "items": {} } } }, "ForgotPasswordRequest": { "required": ["email"], "type": "object", "properties": { "email": { "type": "string" } } }, "InvoiceItemResponse": { "required": ["id", "date", "name", "hours", "costPerHour", "total"], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "date": { "type": "string", "format": "date-time" }, "name": { "type": "string" }, "hours": { "type": "integer", "format": "int32" }, "costPerHour": { "type": "number", "format": "double" }, "total": { "type": "number", "format": "double" } } }, "InvoiceNumberResponse": { "required": ["invoiceId", "invoiceNumber"], "type": "object", "properties": { "invoiceId": { "type": "string" }, "invoiceNumber": { "type": "string" } } }, "InvoiceResponse": { "required": [ "id", "invoiceNumber", "invoiceDate", "clientName", "reference", "totalAmount", "accountName", "bank", "branchCode", "accountNumber", "status", "caseNumber", "plaintiff", "defendant", "caseId", "items" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "invoiceNumber": { "type": "string" }, "invoiceDate": { "type": "string", "format": "date-time" }, "clientName": { "type": "string" }, "reference": { "type": "string" }, "totalAmount": { "type": "number", "format": "double" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" }, "status": { "$ref": "#/components/schemas/InvoiceStatus" }, "caseNumber": { "type": "string" }, "plaintiff": { "type": "string" }, "defendant": { "type": "string" }, "caseId": { "type": "string", "format": "uuid" }, "items": { "type": "array", "items": { "$ref": "#/components/schemas/InvoiceItemResponse" } } } }, "InvoiceStatus": { "type": "integer" }, "LawyerReportActivityLogResponse": { "required": ["title", "hoursAgo"], "type": "object", "properties": { "title": { "type": "string" }, "hoursAgo": { "type": "string" } } }, "LawyerReportCardsResponse": { "required": ["value", "description", "percentage"], "type": "object", "properties": { "value": { "type": "string" }, "description": { "type": "string", "nullable": true }, "percentage": { "type": "string" } } }, "LawyerReportCaseDistributionResponse": { "required": ["caseType", "totalAmount"], "type": "object", "properties": { "caseType": { "$ref": "#/components/schemas/CourtCaseTypes" }, "totalAmount": { "type": "number", "format": "double" } } }, "LawyerReportInvoicesResponse": { "required": [ "invoiceNumber", "caseName", "caseNumber", "totalAmount", "status" ], "type": "object", "properties": { "invoiceNumber": { "type": "string" }, "caseName": { "type": "string" }, "caseNumber": { "type": "string" }, "totalAmount": { "type": "number", "format": "double" }, "status": { "$ref": "#/components/schemas/InvoiceStatus" } } }, "LawyerReportResponse": { "required": [ "lawyerReportCards", "invoices", "caseDistributions", "upcomingDeadlines", "activityLog", "lawyer" ], "type": "object", "properties": { "lawyerReportCards": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerReportCardsResponse" } }, "invoices": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerReportInvoicesResponse" } }, "caseDistributions": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerReportCaseDistributionResponse" } }, "upcomingDeadlines": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerReportUpcomingDeadlinesResponse" } }, "activityLog": { "type": "array", "items": { "$ref": "#/components/schemas/LawyerReportActivityLogResponse" } }, "lawyer": { "$ref": "#/components/schemas/LawyerResponse" } } }, "LawyerReportUpcomingDeadlinesResponse": { "required": ["title", "caseNumber", "date"], "type": "object", "properties": { "title": { "type": "string" }, "caseNumber": { "type": "string" }, "date": { "type": "string" } } }, "LawyerResponse": { "required": [ "id", "name", "surname", "mobileNumber", "email", "speciality", "totalCases" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "surname": { "type": "string" }, "mobileNumber": { "type": "string" }, "email": { "type": "string" }, "speciality": { "$ref": "#/components/schemas/Speciality" }, "totalCases": { "type": "integer", "format": "int32" } } }, "LoginRequest": { "required": ["email", "password"], "type": "object", "properties": { "email": { "type": "string" }, "password": { "type": "string" } } }, "LoginResponse": { "required": ["token", "expiration", "refreshToken"], "type": "object", "properties": { "token": { "type": "string" }, "expiration": { "type": "string", "format": "date-time" }, "refreshToken": { "type": "string" } } }, "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 } } }, "RecentCaseActivityResult": { "required": [ "actitvityTitle", "activityDescription", "date", "timeSince" ], "type": "object", "properties": { "actitvityTitle": { "type": "string" }, "activityDescription": { "type": "string" }, "date": { "type": "string" }, "timeSince": { "type": "string" } } }, "RegisterRequest": { "required": [ "email", "name", "surname", "mobileNumber", "password", "firmId" ], "type": "object", "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "surname": { "type": "string" }, "mobileNumber": { "type": "string" }, "password": { "type": "string" }, "firmId": { "type": "string", "format": "uuid" } } }, "Speciality": { "type": "integer" }, "Stream": { "type": "string", "format": "binary" }, "StringSegment": { "type": "object", "properties": { "buffer": { "type": "string", "nullable": true }, "offset": { "type": "integer", "format": "int32" }, "length": { "type": "integer", "format": "int32" }, "value": { "type": "string", "nullable": true }, "hasValue": { "type": "boolean" } } }, "UpcomingCourtCaseActivityResult": { "required": [ "courtDateTitle", "courtDateDescription", "date", "courtDateType", "id" ], "type": "object", "properties": { "courtDateTitle": { "type": "string" }, "courtDateDescription": { "type": "string" }, "date": { "type": "string" }, "courtDateType": { "$ref": "#/components/schemas/CourtCaseDateTypes" }, "id": { "type": "string", "format": "uuid" } } }, "UpdateCourtCaseDateRequest": { "required": [ "date", "title", "description", "type", "isComplete", "isCancelled", "caseId" ], "type": "object", "properties": { "date": { "type": "string" }, "title": { "type": "string" }, "description": { "type": "string" }, "type": { "$ref": "#/components/schemas/CourtCaseDateTypes" }, "isComplete": { "type": "boolean" }, "isCancelled": { "type": "boolean" }, "caseId": { "type": "string", "format": "uuid" } } }, "UpdateCourtCaseRequest": { "required": [ "caseNumber", "location", "plaintiff", "defendant", "status", "type", "outcome" ], "type": "object", "properties": { "caseNumber": { "type": "string" }, "location": { "type": "string" }, "plaintiff": { "type": "string" }, "defendant": { "type": "string" }, "status": { "$ref": "#/components/schemas/CourtCaseStatus" }, "type": { "$ref": "#/components/schemas/CourtCaseTypes" }, "outcome": { "$ref": "#/components/schemas/CourtCaseOutcomes" } } }, "UpdateDocumentRequest": { "required": ["fileName"], "type": "object", "properties": { "fileName": { "type": "string" } } }, "UpdateFirmRequest": { "required": [ "name", "address", "telephone", "fax", "mobile", "email", "attorneyAdmissionDate", "advocateAdmissionDate", "accountName", "bank", "branchCode", "accountNumber" ], "type": "object", "properties": { "name": { "type": "string" }, "address": { "type": "string" }, "telephone": { "type": "string" }, "fax": { "type": "string" }, "mobile": { "type": "string" }, "email": { "type": "string" }, "attorneyAdmissionDate": { "type": "string" }, "advocateAdmissionDate": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" } } }, "UpdateInvoiceItemRequest": { "required": ["invoiceId", "name", "hours", "costPerHour", "caseId"], "type": "object", "properties": { "invoiceId": { "type": "string", "format": "uuid" }, "name": { "type": "string" }, "hours": { "type": "integer", "format": "int32" }, "costPerHour": { "type": "number", "format": "double" }, "caseId": { "type": "string", "format": "uuid" } } }, "UpdateInvoiceRequest": { "required": [ "id", "invoiceNumber", "invoiceDate", "clientName", "reference", "caseName", "accountName", "bank", "branchCode", "accountNumber", "status" ], "type": "object", "properties": { "id": { "type": "string", "format": "uuid" }, "invoiceNumber": { "type": "string" }, "invoiceDate": { "type": "string", "format": "date-time" }, "clientName": { "type": "string" }, "reference": { "type": "string" }, "caseName": { "type": "string" }, "accountName": { "type": "string" }, "bank": { "type": "string" }, "branchCode": { "type": "string" }, "accountNumber": { "type": "string" }, "status": { "$ref": "#/components/schemas/InvoiceStatus" } } }, "UpdateInvoiceStatusRequest": { "required": ["isPaid"], "type": "object", "properties": { "isPaid": { "$ref": "#/components/schemas/InvoiceStatus" } } }, "UpdateLawyerRequest": { "required": ["email", "name", "surname", "mobileNumber", "specialty"], "type": "object", "properties": { "email": { "type": "string" }, "name": { "type": "string" }, "surname": { "type": "string" }, "mobileNumber": { "type": "string" }, "specialty": { "type": "integer", "format": "int32" } } } }, "securitySchemes": { "Bearer": { "type": "http", "description": "JWT Authorization header using the Bearer scheme. Enter your token below.", "scheme": "bearer", "bearerFormat": "JWT" } } }, "security": [{ "Bearer": [] }], "tags": [ { "name": "CourtCase" }, { "name": "CourtCaseDate" }, { "name": "Dashboard" }, { "name": "Document" }, { "name": "Email" }, { "name": "Firm" }, { "name": "Invoice" }, { "name": "InvoiceItem" }, { "name": "Lawyer" }, { "name": "User" } ] }