GET api/Books?bookID={bookID}
Retrieves Books based on the provided Book ID.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
bookID |
The ID of the book to filter the Book list |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A Book matching the provided Book ID.
BookName | Description | Type | Additional information |
---|---|---|---|
bookID |
Gets or sets the ID of the book. |
integer |
None. |
bookName |
Gets or sets the name of the book. |
string |
None. |
bookDescription |
Gets or sets the description of the book. |
string |
None. |
authorName |
Gets or sets the name of the author of the book. |
string |
None. |
bookPrice |
Gets or sets the description of the book. |
decimal number |
None. |
imageURL |
Gets or sets the URL of the book's image. |
string |
None. |
type |
Gets or sets the type of the book. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "bookID": 1, "bookName": "sample string 2", "bookDescription": "sample string 3", "authorName": "sample string 4", "bookPrice": 5.1, "imageURL": "sample string 6", "type": "sample string 7" }
application/xml, text/xml
Sample:
<Book xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <authorName>sample string 4</authorName> <bookDescription>sample string 3</bookDescription> <bookID>1</bookID> <bookName>sample string 2</bookName> <bookPrice>5.1</bookPrice> <imageURL>sample string 6</imageURL> <type>sample string 7</type> </Book>