{ "openapi": "3.0.4", "info": { "title": "API", "version": "1.0" }, "paths": { "/api/Aim/{id}": { "get": { "tags": [ "Aim" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AimDto" } } } } } }, "patch": { "tags": [ "Aim" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateAimInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateAimInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateAimInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AimDto" } } } } } }, "delete": { "tags": [ "Aim" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/Aim": { "get": { "tags": [ "Aim" ], "parameters": [ { "name": "Limit", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Offset", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "SourceIds", "in": "query", "schema": { "type": "array", "items": { "type": "integer", "format": "int32" } } }, { "name": "ClosedOnly", "in": "query", "schema": { "type": "boolean" } }, { "name": "SortDescending", "in": "query", "schema": { "type": "boolean" } }, { "name": "SortBy", "in": "query", "schema": { "$ref": "#/components/schemas/AimSortBy" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AimDto" } } } } } }, "post": { "tags": [ "Aim" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAimInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateAimInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateAimInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AimDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AimDto" } } } } } } }, "/api/Aim/{aimId}/sources/{sourceId}": { "post": { "tags": [ "Aim" ], "parameters": [ { "name": "aimId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sourceId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } }, "delete": { "tags": [ "Aim" ], "parameters": [ { "name": "aimId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } }, { "name": "sourceId", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/Category": { "get": { "tags": [ "Category" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CategoryDto" } } } } } } }, "post": { "tags": [ "Category" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateCategoryInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateCategoryInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } } } } } } }, "/api/Category/{id}": { "get": { "tags": [ "Category" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } } } } } }, "patch": { "tags": [ "Category" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateCategoryInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateCategoryInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateCategoryInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CategoryDto" } } } } } }, "delete": { "tags": [ "Category" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/Currency": { "get": { "tags": [ "Currency" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CurrencyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CurrencyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CurrencyDto" } } } } } } } }, "/api/Currency/{id}": { "get": { "tags": [ "Currency" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/CurrencyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/CurrencyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CurrencyDto" } } } } } } }, "/api/Frequency": { "get": { "tags": [ "Frequency" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } } } } } }, "post": { "tags": [ "Frequency" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateFrequencyInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateFrequencyInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateFrequencyInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } } } } } } }, "/api/Frequency/user": { "get": { "tags": [ "Frequency" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/FrequencyDto" } } } } } } } }, "/api/Frequency/{id}": { "get": { "tags": [ "Frequency" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } } } } } }, "patch": { "tags": [ "Frequency" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateFrequencyInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateFrequencyInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateFrequencyInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/FrequencyDto" } } } } } }, "delete": { "tags": [ "Frequency" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/IntervalUnit": { "get": { "tags": [ "IntervalUnit" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/IntervalUnitDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/IntervalUnitDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/IntervalUnitDto" } } } } } } } }, "/api/IntervalUnit/{id}": { "get": { "tags": [ "IntervalUnit" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/IntervalUnitDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/IntervalUnitDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/IntervalUnitDto" } } } } } } }, "/api/Jwt/refreshToken": { "post": { "tags": [ "Jwt" ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "string" } }, "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } } } } } } }, "/api/PlannedTransaction": { "get": { "tags": [ "PlannedTransaction" ], "parameters": [ { "name": "Offset", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Limit", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "MinAmount", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "MaxAmount", "in": "query", "schema": { "type": "number", "format": "double" } }, { "name": "SortDescending", "in": "query", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlannedTransactionDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlannedTransactionDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/PlannedTransactionDto" } } } } } } }, "post": { "tags": [ "PlannedTransaction" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreatePlannedTransactionInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreatePlannedTransactionInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreatePlannedTransactionInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } } } } } } }, "/api/PlannedTransaction/{id}": { "get": { "tags": [ "PlannedTransaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } } } } } }, "delete": { "tags": [ "PlannedTransaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } }, "patch": { "tags": [ "PlannedTransaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdatePlannedTransactionInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdatePlannedTransactionInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdatePlannedTransactionInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/PlannedTransactionDto" } } } } } } }, "/api/Source/summary": { "get": { "tags": [ "Source" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceSummaryDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceSummaryDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceSummaryDto" } } } } } } }, "/api/Source": { "get": { "tags": [ "Source" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SourceDtoLookup" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SourceDtoLookup" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } } }, "post": { "tags": [ "Source" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSourceInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateSourceInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateSourceInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } } }, "/api/Source/{id}": { "get": { "tags": [ "Source" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoDetailed" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoDetailed" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoDetailed" } } } } } }, "patch": { "tags": [ "Source" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateSourceInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateSourceInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateSourceInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } } }, "/api/Source/archive/{id}": { "patch": { "tags": [ "Source" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } } }, "/api/Source/unarchive/{id}": { "patch": { "tags": [ "Source" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "application/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } }, "text/json": { "schema": { "$ref": "#/components/schemas/SourceDtoLookup" } } } } } } }, "/api/Transaction": { "get": { "tags": [ "Transaction" ], "parameters": [ { "name": "Offset", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "Limit", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "FromDate", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "ToDate", "in": "query", "schema": { "type": "string", "format": "date" } }, { "name": "SortBy", "in": "query", "schema": { "$ref": "#/components/schemas/TransactionSortBy" } }, { "name": "CategoryId", "in": "query", "schema": { "type": "integer", "format": "int32" } }, { "name": "SortDescending", "in": "query", "schema": { "type": "boolean" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TransactionDtoPaginatedResult" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TransactionDtoPaginatedResult" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TransactionDtoPaginatedResult" } } } } } }, "post": { "tags": [ "Transaction" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateTransactionInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateTransactionInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateTransactionInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } } } } } } }, "/api/Transaction/{id}": { "get": { "tags": [ "Transaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } } } } } }, "delete": { "tags": [ "Transaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK" } } }, "patch": { "tags": [ "Transaction" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UpdateTransactionInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/UpdateTransactionInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/UpdateTransactionInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TransactionDto" } } } } } } }, "/api/TransactionType/{id}": { "get": { "tags": [ "TransactionType" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/TransactionTypeDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/TransactionTypeDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/TransactionTypeDto" } } } } } } }, "/api/TransactionType": { "get": { "tags": [ "TransactionType" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionTypeDto" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionTypeDto" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionTypeDto" } } } } } } } }, "/api/User/register": { "post": { "tags": [ "User" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateUserInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/CreateUserInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/CreateUserInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } } } } } } }, "/api/User/login": { "post": { "tags": [ "User" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginUserInput" } }, "text/json": { "schema": { "$ref": "#/components/schemas/LoginUserInput" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/LoginUserInput" } } } }, "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } } } } } } }, "/api/User/logout": { "post": { "tags": [ "User" ], "requestBody": { "content": { "application/json": { "schema": { "type": "string" } }, "text/json": { "schema": { "type": "string" } }, "application/*+json": { "schema": { "type": "string" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/User/email-available": { "get": { "tags": [ "User" ], "parameters": [ { "name": "email", "in": "query", "schema": { "type": "string" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "boolean" } }, "application/json": { "schema": { "type": "boolean" } }, "text/json": { "schema": { "type": "boolean" } } } } } } }, "/api/User/me": { "get": { "tags": [ "User" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "application/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } }, "text/json": { "schema": { "$ref": "#/components/schemas/AuthUserDto" } } } } } } } }, "components": { "schemas": { "AimDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "priority": { "type": "integer", "format": "int32" }, "userId": { "type": "integer", "format": "int32" }, "isClosed": { "type": "boolean" }, "currency": { "$ref": "#/components/schemas/CurrencyDto" }, "sources": { "type": "array", "items": { "$ref": "#/components/schemas/SourceDtoLookup" }, "nullable": true }, "progress": { "$ref": "#/components/schemas/AimProgressDto" } }, "additionalProperties": false }, "AimProgressDto": { "type": "object", "properties": { "collectedAmount": { "type": "number", "format": "double" }, "targetAmount": { "type": "number", "format": "double" }, "completionPercentage": { "type": "number", "format": "double", "readOnly": true } }, "additionalProperties": false }, "AimSortBy": { "enum": [ "Amount", "Priority" ], "type": "string" }, "AuthUserDto": { "type": "object", "properties": { "accessToken": { "type": "string", "nullable": true }, "refreshToken": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CategoryDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "userId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateAimInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "priority": { "type": "integer", "format": "int32" }, "currencyId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "CreateCategoryInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CreateFrequencyInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "intervalUnitId": { "type": "integer", "format": "int32" }, "intervalValue": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreatePlannedTransactionInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "startDate": { "type": "string", "format": "date" }, "currencyId": { "type": "integer", "format": "int32" }, "transactionTypeId": { "type": "integer", "format": "int32" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "sourceId": { "type": "integer", "format": "int32" }, "frequencyId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateSourceInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "currencyId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateTransactionInput": { "type": "object", "properties": { "amount": { "type": "number", "format": "double" }, "comment": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date" }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "sourceId": { "type": "integer", "format": "int32" }, "destinationSourceId": { "type": "integer", "format": "int32", "nullable": true }, "currencyId": { "type": "integer", "format": "int32" }, "transactionTypeId": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "CreateUserInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "email": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "CurrencyDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "usdExchangeRate": { "type": "number", "format": "double" } }, "additionalProperties": false }, "FrequencyDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "userId": { "type": "integer", "format": "int32", "nullable": true }, "intervalValue": { "type": "integer", "format": "int32" }, "intervalUnit": { "$ref": "#/components/schemas/IntervalUnitDto" } }, "additionalProperties": false }, "IntervalUnitDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "LoginUserInput": { "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "password": { "type": "string", "nullable": true } }, "additionalProperties": false }, "PaginationMeta": { "type": "object", "properties": { "totalCount": { "type": "integer", "format": "int32" }, "hasMore": { "type": "boolean" }, "offset": { "type": "integer", "format": "int32" }, "limit": { "type": "integer", "format": "int32" } }, "additionalProperties": false }, "PlannedTransactionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "startDate": { "type": "string", "format": "date" }, "userId": { "type": "integer", "format": "int32" }, "category": { "$ref": "#/components/schemas/CategoryDto" }, "currency": { "$ref": "#/components/schemas/CurrencyDto" }, "frequency": { "$ref": "#/components/schemas/FrequencyDto" }, "source": { "$ref": "#/components/schemas/SourceDtoLookup" }, "transactionType": { "$ref": "#/components/schemas/TransactionTypeDto" } }, "additionalProperties": false }, "SourceDtoDetailed": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "userId": { "type": "integer", "format": "int32" }, "currency": { "$ref": "#/components/schemas/CurrencyDto" }, "isArchived": { "type": "boolean" }, "aims": { "type": "array", "items": { "$ref": "#/components/schemas/AimDto" }, "nullable": true } }, "additionalProperties": false }, "SourceDtoLookup": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double" }, "userId": { "type": "integer", "format": "int32" }, "currency": { "$ref": "#/components/schemas/CurrencyDto" }, "isArchived": { "type": "boolean" } }, "additionalProperties": false }, "SourceSummaryDto": { "type": "object", "properties": { "total": { "type": "number", "format": "double" }, "sources": { "type": "array", "items": { "$ref": "#/components/schemas/SourceDtoLookup" }, "nullable": true } }, "additionalProperties": false }, "TransactionDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "amount": { "type": "number", "format": "double" }, "comment": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date" }, "userId": { "type": "integer", "format": "int32" }, "category": { "$ref": "#/components/schemas/CategoryDto" }, "currency": { "$ref": "#/components/schemas/CurrencyDto" }, "destinationSource": { "$ref": "#/components/schemas/SourceDtoLookup" }, "source": { "$ref": "#/components/schemas/SourceDtoLookup" }, "transactionType": { "$ref": "#/components/schemas/TransactionTypeDto" } }, "additionalProperties": false }, "TransactionDtoPaginatedResult": { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/components/schemas/TransactionDto" }, "nullable": true }, "meta": { "$ref": "#/components/schemas/PaginationMeta" } }, "additionalProperties": false }, "TransactionSortBy": { "enum": [ "Date", "Amount" ], "type": "string" }, "TransactionTypeDto": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateAimInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double", "nullable": true }, "priority": { "type": "integer", "format": "int32", "nullable": true }, "currencyId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UpdateCategoryInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateFrequencyInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "intervalUnitId": { "type": "integer", "format": "int32", "nullable": true }, "intervalValue": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UpdatePlannedTransactionInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true }, "amount": { "type": "number", "format": "double", "nullable": true }, "startDate": { "type": "string", "format": "date", "nullable": true }, "currencyId": { "type": "integer", "format": "int32", "nullable": true }, "transactionTypeId": { "type": "integer", "format": "int32", "nullable": true }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "sourceId": { "type": "integer", "format": "int32", "nullable": true }, "frequencyId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false }, "UpdateSourceInput": { "type": "object", "properties": { "name": { "type": "string", "nullable": true } }, "additionalProperties": false }, "UpdateTransactionInput": { "type": "object", "properties": { "amount": { "type": "number", "format": "double", "nullable": true }, "comment": { "type": "string", "nullable": true }, "date": { "type": "string", "format": "date", "nullable": true }, "categoryId": { "type": "integer", "format": "int32", "nullable": true }, "sourceId": { "type": "integer", "format": "int32", "nullable": true }, "destinationSourceId": { "type": "integer", "format": "int32", "nullable": true }, "currencyId": { "type": "integer", "format": "int32", "nullable": true }, "transactionTypeId": { "type": "integer", "format": "int32", "nullable": true } }, "additionalProperties": false } } }, "tags": [ { "name": "Aim" }, { "name": "Category" }, { "name": "Currency" }, { "name": "Frequency" }, { "name": "IntervalUnit" }, { "name": "Jwt" }, { "name": "PlannedTransaction" }, { "name": "Source" }, { "name": "Transaction" }, { "name": "TransactionType" }, { "name": "User" } ] }