feat: add token response and token request
This commit is contained in:
parent
0e4b57af51
commit
7d78295b9a
25
src/shared/requests/v1/loginRequest.ts
Normal file
25
src/shared/requests/v1/loginRequest.ts
Normal file
@ -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;
|
||||||
|
}
|
25
src/shared/responses/v1/tokenResponse.ts
Normal file
25
src/shared/responses/v1/tokenResponse.ts
Normal file
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user