GET api/Books
Gets all Books.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of Books
Collection of 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" }, { "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:
<ArrayOfBook xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <Book> <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> <Book> <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> </ArrayOfBook>