From 7d78295b9a6ed99847180e06304eb4f4182d9f11 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 2 Jul 2024 00:53:51 +0300 Subject: [PATCH] feat: add token response and token request --- src/shared/requests/v1/loginRequest.ts | 25 ++++++++++++++++++++++++ src/shared/responses/v1/tokenResponse.ts | 25 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/shared/requests/v1/loginRequest.ts create mode 100644 src/shared/responses/v1/tokenResponse.ts diff --git a/src/shared/requests/v1/loginRequest.ts b/src/shared/requests/v1/loginRequest.ts new file mode 100644 index 0000000..7f019ac --- /dev/null +++ b/src/shared/requests/v1/loginRequest.ts @@ -0,0 +1,25 @@ +/** + * MIREA Schedule Web API + * This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team. + * + * OpenAPI spec version: 1.0 + * Contact: support@winsomnia.net + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * + */ +export interface LoginRequest { + /** + * + */ + username: string; + /** + * + */ + password: number; +} diff --git a/src/shared/responses/v1/tokenResponse.ts b/src/shared/responses/v1/tokenResponse.ts new file mode 100644 index 0000000..f683d5f --- /dev/null +++ b/src/shared/responses/v1/tokenResponse.ts @@ -0,0 +1,25 @@ +/** + * MIREA Schedule Web API + * This API provides a convenient interface for retrieving data stored in the database. Special attention was paid to the lightweight and easy transfer of all necessary data. Made by the Winsomnia team. + * + * OpenAPI spec version: 1.0 + * Contact: support@winsomnia.net + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/** + * + */ +export interface TokenResponse { + /** + * + */ + accessToken : string; + /** + * + */ + expiresIn: Date; +}