feat: add api models
This commit is contained in:
25
src/shared/responses/v1/errorResponse.ts
Normal file
25
src/shared/responses/v1/errorResponse.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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* A class for providing information about an error
|
||||
*/
|
||||
export interface ErrorResponse {
|
||||
/**
|
||||
* The text or translation code of the error. This field may not contain information in specific scenarios. For example, it might be empty for HTTP 204 responses where no content is returned or if the validation texts have not been configured.
|
||||
*/
|
||||
error: string;
|
||||
/**
|
||||
* In addition to returning the response code in the header, it is also duplicated in this field. Represents the HTTP response code.
|
||||
*/
|
||||
code: number;
|
||||
}
|
Reference in New Issue
Block a user