feat: adding openapi spect generation to the frontend client aas well as to fast api. Broke API out into different routes

This commit is contained in:
lucas.oskorep
2023-07-17 02:07:41 -04:00
parent add28cafc6
commit 4a20152ff5
45 changed files with 3379 additions and 206 deletions

View File

@@ -0,0 +1,66 @@
/* tslint:disable */
/* eslint-disable */
/**
* FastAPI
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
/**
*
* @export
* @interface RouteResponse
*/
export interface RouteResponse {
/**
*
* @type {any}
* @memberof RouteResponse
*/
arrivalTimes: any | null;
}
/**
* Check if a given object implements the RouteResponse interface.
*/
export function instanceOfRouteResponse(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "arrivalTimes" in value;
return isInstance;
}
export function RouteResponseFromJSON(json: any): RouteResponse {
return RouteResponseFromJSONTyped(json, false);
}
export function RouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteResponse {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'arrivalTimes': json['arrival_times'],
};
}
export function RouteResponseToJSON(value?: RouteResponse | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'arrival_times': value.arrivalTimes,
};
}