GET api/Recipes/Suggest/{searchTerm}
Adott keresőszóval ajánl 5 db recepteket
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
searchTerm |
keresőszó |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
Recept fejlécek listája
Collection of RecipeHeaderName | Description | Type | Additional information |
---|---|---|---|
Id |
Azonosító |
integer |
None. |
Title |
Cím |
string |
None. |
BackgroundImage |
Háttérkép |
string |
None. |
TileImage |
Csempekép |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Title": "sample string 2", "BackgroundImage": "sample string 3", "TileImage": "sample string 4" }, { "Id": 1, "Title": "sample string 2", "BackgroundImage": "sample string 3", "TileImage": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfRecipeHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CookbookService2.Model"> <RecipeHeader> <BackgroundImage>sample string 3</BackgroundImage> <Id>1</Id> <TileImage>sample string 4</TileImage> <Title>sample string 2</Title> </RecipeHeader> <RecipeHeader> <BackgroundImage>sample string 3</BackgroundImage> <Id>1</Id> <TileImage>sample string 4</TileImage> <Title>sample string 2</Title> </RecipeHeader> </ArrayOfRecipeHeader>