working search with flat endpoint

This commit is contained in:
vabene1111
2024-02-29 20:08:37 +01:00
parent e47bdd043e
commit 1cac34d2a0
143 changed files with 18623 additions and 9992 deletions

View File

@@ -1,10 +1,10 @@
/* tslint:disable */
/* eslint-disable */
/**
* Django Recipes
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document:
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,7 +24,7 @@ export interface ViewLog {
* @type {number}
* @memberof ViewLog
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {number}
@@ -33,16 +33,16 @@ export interface ViewLog {
recipe: number;
/**
*
* @type {string}
* @type {number}
* @memberof ViewLog
*/
readonly createdBy?: string;
readonly createdBy: number;
/**
*
* @type {Date}
* @memberof ViewLog
*/
readonly createdAt?: Date;
readonly createdAt: Date;
}
/**
@@ -50,7 +50,10 @@ export interface ViewLog {
*/
export function instanceOfViewLog(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "recipe" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
@@ -65,10 +68,10 @@ export function ViewLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): V
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'recipe': json['recipe'],
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
'createdBy': json['created_by'],
'createdAt': (new Date(json['created_at'])),
};
}