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).
@@ -14,7 +14,7 @@
import { exists, mapValues } from '../runtime';
/**
*
* Adds nested create feature
* @export
* @interface RecipeSimple
*/
@@ -24,7 +24,7 @@ export interface RecipeSimple {
* @type {number}
* @memberof RecipeSimple
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -36,7 +36,7 @@ export interface RecipeSimple {
* @type {string}
* @memberof RecipeSimple
*/
readonly url?: string;
readonly url: string;
}
/**
@@ -44,7 +44,9 @@ export interface RecipeSimple {
*/
export function instanceOfRecipeSimple(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "url" in value;
return isInstance;
}
@@ -59,9 +61,9 @@ export function RecipeSimpleFromJSONTyped(json: any, ignoreDiscriminator: boolea
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'url': !exists(json, 'url') ? undefined : json['url'],
'url': json['url'],
};
}