1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 17:16:59 -05:00

working search with flat endpoint

This commit is contained in:
vabene1111
2024-02-29 20:08:37 +01:00
committed by smilerz
parent 4a8ad3db1e
commit 17f875863c
143 changed files with 18624 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 RecipeFlat
*/
@@ -24,7 +24,7 @@ export interface RecipeFlat {
* @type {number}
* @memberof RecipeFlat
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -33,10 +33,10 @@ export interface RecipeFlat {
name: string;
/**
*
* @type {Blob}
* @type {string}
* @memberof RecipeFlat
*/
image?: Blob | null;
image?: string | null;
}
/**
@@ -44,6 +44,7 @@ export interface RecipeFlat {
*/
export function instanceOfRecipeFlat(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
return isInstance;
@@ -59,7 +60,7 @@ export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean)
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'image': !exists(json, 'image') ? undefined : json['image'],
};