Skip to content
Snippets Groups Projects
Commit 1860facd authored by VIktorGrev's avatar VIktorGrev
Browse files

feat: Generating openAPI

parent 4a1d1064
No related branches found
No related tags found
1 merge request!85feat: Adding current points in shop
Pipeline #283533 failed
...@@ -867,8 +867,8 @@ ...@@ -867,8 +867,8 @@
} }
} }
}, },
"404": { "401": {
"description": "User not found", "description": "Invalid credentials",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
...@@ -877,8 +877,8 @@ ...@@ -877,8 +877,8 @@
} }
} }
}, },
"401": { "404": {
"description": "Invalid credentials", "description": "User not found",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
...@@ -2236,6 +2236,18 @@ ...@@ -2236,6 +2236,18 @@
} }
} }
}, },
"BankAccountResponseDTO": {
"type": "object",
"properties": {
"bban": {
"type": "integer",
"format": "int64"
},
"balance": {
"type": "number"
}
}
},
"ChallengeDTO": { "ChallengeDTO": {
"type": "object", "type": "object",
"properties": { "properties": {
...@@ -2445,12 +2457,10 @@ ...@@ -2445,12 +2457,10 @@
"type": "string" "type": "string"
}, },
"checkingAccountBBAN": { "checkingAccountBBAN": {
"type": "integer", "$ref": "#/components/schemas/BankAccountResponseDTO"
"format": "int64"
}, },
"savingsAccountBBAN": { "savingsAccountBBAN": {
"type": "integer", "$ref": "#/components/schemas/BankAccountResponseDTO"
"format": "int64"
}, },
"point": { "point": {
"$ref": "#/components/schemas/PointDTO" "$ref": "#/components/schemas/PointDTO"
......
...@@ -13,6 +13,7 @@ export type { AccountResponseDTO } from './models/AccountResponseDTO'; ...@@ -13,6 +13,7 @@ export type { AccountResponseDTO } from './models/AccountResponseDTO';
export type { AuthenticationResponse } from './models/AuthenticationResponse'; export type { AuthenticationResponse } from './models/AuthenticationResponse';
export type { BadgeDTO } from './models/BadgeDTO'; export type { BadgeDTO } from './models/BadgeDTO';
export type { BankAccountDTO } from './models/BankAccountDTO'; export type { BankAccountDTO } from './models/BankAccountDTO';
export type { BankAccountResponseDTO } from './models/BankAccountResponseDTO';
export type { BankIDRequest } from './models/BankIDRequest'; export type { BankIDRequest } from './models/BankIDRequest';
export type { BankProfile } from './models/BankProfile'; export type { BankProfile } from './models/BankProfile';
export type { BankProfileDTO } from './models/BankProfileDTO'; export type { BankProfileDTO } from './models/BankProfileDTO';
......
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BankAccountResponseDTO = {
bban?: number;
balance?: number;
};
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
/* istanbul ignore file */ /* istanbul ignore file */
/* tslint:disable */ /* tslint:disable */
/* eslint-disable */ /* eslint-disable */
import type { BankAccountResponseDTO } from './BankAccountResponseDTO';
import type { PointDTO } from './PointDTO'; import type { PointDTO } from './PointDTO';
import type { StreakDTO } from './StreakDTO'; import type { StreakDTO } from './StreakDTO';
export type UserDTO = { export type UserDTO = {
...@@ -14,8 +15,8 @@ export type UserDTO = { ...@@ -14,8 +15,8 @@ export type UserDTO = {
createdAt?: string; createdAt?: string;
role?: string; role?: string;
subscriptionLevel?: string; subscriptionLevel?: string;
checkingAccountBBAN?: number; checkingAccountBBAN?: BankAccountResponseDTO;
savingsAccountBBAN?: number; savingsAccountBBAN?: BankAccountResponseDTO;
point?: PointDTO; point?: PointDTO;
streak?: StreakDTO; streak?: StreakDTO;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment