add Python server backend
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2024-05-11 14:06:39 +02:00
parent 14d63294a3
commit cd3afa4d61
22 changed files with 1896 additions and 119 deletions

78
src/api.d.ts vendored Normal file
View File

@@ -0,0 +1,78 @@
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/type/{type}/startDate/{start_date}/endDate/{end_date}/sample/{sample}": {
/** Get Sensor Data */
get: operations["get_sensor_data_type__type__startDate__start_date__endDate__end_date__sample__sample__get"];
};
}
export type webhooks = Record<string, never>;
export interface components {
schemas: {
/** Document */
Document: {
/** Date */
date: number;
/** Value */
value: number;
};
/** HTTPValidationError */
HTTPValidationError: {
/** Detail */
detail?: components["schemas"]["ValidationError"][];
};
/** ValidationError */
ValidationError: {
/** Location */
loc: (string | number)[];
/** Message */
msg: string;
/** Error Type */
type: string;
};
};
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}
export type $defs = Record<string, never>;
export type external = Record<string, never>;
export interface operations {
/** Get Sensor Data */
get_sensor_data_type__type__startDate__start_date__endDate__end_date__sample__sample__get: {
parameters: {
path: {
type: "temperature" | "humidity";
start_date: number;
end_date: number;
sample: number;
};
};
responses: {
/** @description Successful Response */
200: {
content: {
"application/json": components["schemas"]["Document"][];
};
};
/** @description Validation Error */
422: {
content: {
"application/json": components["schemas"]["HTTPValidationError"];
};
};
};
};
}