1
0
mirror of https://github.com/TandoorRecipes/recipes.git synced 2026-01-11 09:07:12 -05:00

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

@@ -0,0 +1,96 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.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';
import type { Ingredient } from './Ingredient';
import {
IngredientFromJSON,
IngredientFromJSONTyped,
IngredientToJSON,
} from './Ingredient';
/**
*
* @export
* @interface PaginatedIngredientList
*/
export interface PaginatedIngredientList {
/**
*
* @type {number}
* @memberof PaginatedIngredientList
*/
count?: number;
/**
*
* @type {string}
* @memberof PaginatedIngredientList
*/
next?: string | null;
/**
*
* @type {string}
* @memberof PaginatedIngredientList
*/
previous?: string | null;
/**
*
* @type {Array<Ingredient>}
* @memberof PaginatedIngredientList
*/
results?: Array<Ingredient>;
}
/**
* Check if a given object implements the PaginatedIngredientList interface.
*/
export function instanceOfPaginatedIngredientList(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PaginatedIngredientListFromJSON(json: any): PaginatedIngredientList {
return PaginatedIngredientListFromJSONTyped(json, false);
}
export function PaginatedIngredientListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIngredientList {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'count': !exists(json, 'count') ? undefined : json['count'],
'next': !exists(json, 'next') ? undefined : json['next'],
'previous': !exists(json, 'previous') ? undefined : json['previous'],
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(IngredientFromJSON)),
};
}
export function PaginatedIngredientListToJSON(value?: PaginatedIngredientList | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'count': value.count,
'next': value.next,
'previous': value.previous,
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(IngredientToJSON)),
};
}