GET api/Recipes/random

Visszatér egy véletlenszerű recept fejlécével

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Random recept

RecipeHeader
NameDescriptionTypeAdditional 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"
}

application/xml, text/xml

Sample:
<RecipeHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CookbookService2.Model">
  <BackgroundImage>sample string 3</BackgroundImage>
  <Id>1</Id>
  <TileImage>sample string 4</TileImage>
  <Title>sample string 2</Title>
</RecipeHeader>