Skip to content

Commit 4916ab4

Browse files
pmerrillroot
authored andcommitted
Generated code by SwaggerHub
1 parent a65927b commit 4916ab4

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

api/default.service.ts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,31 +286,26 @@ export class DefaultService {
286286

287287
/**
288288
* Get raw/generic food ingredient item(s)
289-
* ## Get data for a specific ingredient or a specific set of ingredients. **Example #1: Single Ingredient** > ```https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=broccoli``` **Example #2: Set of Ingredients** > ```https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=broccoli,cauliflower,spinach``` **Tips** * Expose ingredient endpoints by using our **[food lookup tool](https://chompthis.com/api/lookup.php)**. > This API endpoint is only available to Standard and Premium API subscribers. Please consider upgrading your subscription if you are subscribed to the Limited plan. **[Read this](https://desk.zoho.com/portal/chompthis/kb/articles/can-i-upgrade-downgrade-my-subscription)** if you aren't sure how to upgrade your subscription.
290-
* @param find Search our database for a single ingredient or a specific set of ingredients. **Example #1: Single Ingredient** > ```&find=broccoli``` **Example #2: Set of Ingredients** > ```&find=broccoli,cauliflower,spinach``` **Important Notes** * Comma-separated lists cannot contain more than **15 ingredients**. You must perform additional API calls if you are looking up more than 15 ingredients.
291-
* @param raw #### Optionally filter the search result to only include raw ingredients. The default value is \"**false**.\" **Example** > ```&raw=true```
289+
* ## Get data for a specific ingredient or a specific set of ingredients. **Example #1: Single Ingredient** > ```https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=raw broccoli``` **Example #2: Set of Ingredients** > ```https://chompthis.com/api/v2/ingredient/search.php?api_key=API_KEY&find=raw broccoli,mashed potatoes,raw spinach``` **Tips** * Expose ingredient endpoints by using our **[food lookup tool](https://chompthis.com/api/lookup.php)**. > This API endpoint is only available to Standard and Premium API subscribers. Please consider upgrading your subscription if you are subscribed to the Limited plan. **[Read this](https://desk.zoho.com/portal/chompthis/kb/articles/can-i-upgrade-downgrade-my-subscription)** if you aren't sure how to upgrade your subscription.
290+
* @param find Search our database for a single ingredient or a specific set of ingredients. **Example #1: Single Ingredient** > ```&find=raw broccoli``` **Example #2: Set of Ingredients** > ```&find=raw broccoli,raw cauliflower,mashed potatoes``` **Important Notes** * Comma-separated lists cannot contain more than **10 ingredients**. You must perform additional API calls if you are looking up more than 10 ingredients.
292291
* @param limit #### Set maximum number of records you want the API to return, per search term. The default value is \"**1**.\" **Example** > ```&limit=3```
293292
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
294293
* @param reportProgress flag to report request and response progress.
295294
*/
296-
public foodIngredientSearchPhpGet(find: string, raw?: boolean, limit?: number, observe?: 'body', reportProgress?: boolean): Observable<IngredientObject>;
297-
public foodIngredientSearchPhpGet(find: string, raw?: boolean, limit?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<IngredientObject>>;
298-
public foodIngredientSearchPhpGet(find: string, raw?: boolean, limit?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<IngredientObject>>;
299-
public foodIngredientSearchPhpGet(find: string, raw?: boolean, limit?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
295+
public foodIngredientSearchPhpGet(find: string, limit?: number, observe?: 'body', reportProgress?: boolean): Observable<IngredientObject>;
296+
public foodIngredientSearchPhpGet(find: string, limit?: number, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<IngredientObject>>;
297+
public foodIngredientSearchPhpGet(find: string, limit?: number, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<IngredientObject>>;
298+
public foodIngredientSearchPhpGet(find: string, limit?: number, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
300299

301300
if (find === null || find === undefined) {
302301
throw new Error('Required parameter find was null or undefined when calling foodIngredientSearchPhpGet.');
303302
}
304303

305304

306-
307305
let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});
308306
if (find !== undefined && find !== null) {
309307
queryParameters = queryParameters.set('find', <any>find);
310308
}
311-
if (raw !== undefined && raw !== null) {
312-
queryParameters = queryParameters.set('raw', <any>raw);
313-
}
314309
if (limit !== undefined && limit !== null) {
315310
queryParameters = queryParameters.set('limit', <any>limit);
316311
}

0 commit comments

Comments
 (0)