GET api/Birds
Gets all Birds.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Birds and Details
Collection of BirdName | Description | Type | Additional information |
---|---|---|---|
Id |
Gets or sets the unique identifier of the bird. |
integer |
None. |
BirdName |
Gets or sets the name of the bird. |
string |
None. |
Category |
Gets or sets the category of the bird. |
string |
None. |
Habitat |
Gets or sets the habitat where the bird can be found. |
string |
None. |
Diet |
Gets or sets the diet of the bird. |
string |
None. |
Price |
Gets or sets the price of the bird. |
decimal number |
None. |
Description |
Gets or sets the description of the bird. |
string |
None. |
Image |
Gets or sets the URL of the bird's image. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "BirdName": "sample string 2", "Category": "sample string 3", "Habitat": "sample string 4", "Diet": "sample string 5", "Price": 6.0, "Description": "sample string 7", "Image": "sample string 8" }, { "Id": 1, "BirdName": "sample string 2", "Category": "sample string 3", "Habitat": "sample string 4", "Diet": "sample string 5", "Price": 6.0, "Description": "sample string 7", "Image": "sample string 8" } ]
application/xml, text/xml
Sample:
<ArrayOfBird xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <Bird> <BirdName>sample string 2</BirdName> <Category>sample string 3</Category> <Description>sample string 7</Description> <Diet>sample string 5</Diet> <Habitat>sample string 4</Habitat> <Id>1</Id> <Image>sample string 8</Image> <Price>6</Price> </Bird> <Bird> <BirdName>sample string 2</BirdName> <Category>sample string 3</Category> <Description>sample string 7</Description> <Diet>sample string 5</Diet> <Habitat>sample string 4</Habitat> <Id>1</Id> <Image>sample string 8</Image> <Price>6</Price> </Bird> </ArrayOfBird>