mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 20:59:28 -05:00
working search with flat endpoint
This commit is contained in:
@@ -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 RecipeShoppingUpdate {
|
||||
* @type {number}
|
||||
* @memberof RecipeShoppingUpdate
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
* Existing shopping list to update
|
||||
* @type {number}
|
||||
@@ -50,6 +50,7 @@ export interface RecipeShoppingUpdate {
|
||||
*/
|
||||
export function instanceOfRecipeShoppingUpdate(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -64,7 +65,7 @@ export function RecipeShoppingUpdateFromJSONTyped(json: any, ignoreDiscriminator
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'listRecipe': !exists(json, 'list_recipe') ? undefined : json['list_recipe'],
|
||||
'ingredients': !exists(json, 'ingredients') ? undefined : json['ingredients'],
|
||||
'servings': !exists(json, 'servings') ? undefined : json['servings'],
|
||||
|
||||
Reference in New Issue
Block a user