refactor: adapt models to the new api
This commit is contained in:
@ -1,29 +1,5 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Request model for creating a user.
|
||||
*/
|
||||
export interface CreateUserRequest {
|
||||
/**
|
||||
* Gets or sets the email address of the user.
|
||||
*/
|
||||
export interface CreateUserRequest {
|
||||
email: string;
|
||||
/**
|
||||
* Gets or sets the username of the user.
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* Gets or sets the password of the user.
|
||||
*/
|
||||
password: string;
|
||||
}
|
||||
}
|
||||
|
@ -1,25 +1,4 @@
|
||||
/**
|
||||
* 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;
|
||||
password: string;
|
||||
}
|
||||
|
@ -1,37 +1,7 @@
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a request object for retrieving schedules based on various filters.
|
||||
*/
|
||||
export interface ScheduleRequest {
|
||||
/**
|
||||
* Gets or sets an array of group IDs.
|
||||
*/
|
||||
groups?: Array<number>;
|
||||
/**
|
||||
* Gets or sets a value indicating whether to retrieve schedules for even weeks.
|
||||
*/
|
||||
isEven?: boolean;
|
||||
/**
|
||||
* Gets or sets an array of discipline IDs.
|
||||
*/
|
||||
disciplines?: Array<number>;
|
||||
/**
|
||||
* Gets or sets an array of professor IDs.
|
||||
*/
|
||||
professors?: Array<number>;
|
||||
/**
|
||||
* Gets or sets an array of lecture hall IDs.
|
||||
*/
|
||||
lectureHalls?: Array<number>;
|
||||
groups?: Array<number>;
|
||||
isEven?: boolean;
|
||||
disciplines?: Array<number>;
|
||||
professors?: Array<number>;
|
||||
lectureHalls?: Array<number>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user