GET api/BooksSimple/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
BookAPI.Models.Simple.Book| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Title | string |
None. |
|
| ISBN | string |
None. |
|
| ImageLink | string |
None. |
|
| Description | string |
None. |
|
| Shelf | BookAPI.Models.Simple.Shelf |
None. |
|
| Authors | Collection of BookAPI.Models.Simple.Author |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Title": "sample string 2",
"ISBN": "sample string 3",
"ImageLink": "sample string 4",
"Description": "sample string 5",
"Shelf": {
"Id": 1,
"Name": "sample string 2",
"Designation": "sample string 3"
},
"Authors": [
{
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3"
},
{
"Id": 1,
"FirstName": "sample string 2",
"LastName": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<Book xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BookAPI.Models.Simple">
<Authors>
<Author>
<FirstName>sample string 2</FirstName>
<Id>1</Id>
<LastName>sample string 3</LastName>
</Author>
<Author>
<FirstName>sample string 2</FirstName>
<Id>1</Id>
<LastName>sample string 3</LastName>
</Author>
</Authors>
<Description>sample string 5</Description>
<ISBN>sample string 3</ISBN>
<Id>1</Id>
<ImageLink>sample string 4</ImageLink>
<Shelf>
<Designation>sample string 3</Designation>
<Id>1</Id>
<Name>sample string 2</Name>
</Shelf>
<Title>sample string 2</Title>
</Book>