GET books/{bookId}
Get book by id. User Authorization Optional.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| bookId |
The book id. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A book.
ResponseInstanceOfBook| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | Book |
None. |
|
| ResultType | ResultType |
None. |
|
| Messages | Collection of string |
None. |
|
| Links | Links |
None. |
|
| ApiBaseUrl | string |
None. |
|
| responseObjectType | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"data": {
"bookId": 1,
"bookName": "sample string 2",
"chapterCount": 3,
"apiUrl": {
"href": "/books/sample string 5"
},
"resourceObjectType": "book"
},
"resultType": {
"code": 0,
"message": "Success"
},
"messages": [
"sample string 1",
"sample string 2"
],
"links": {},
"apiBaseUrl": "sample string 1",
"responseObjectType": "responseInstance<book>"
}
application/xml, text/xml
Sample:
<ResponseInstance xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ApiBaseUrl>sample string 1</ApiBaseUrl>
<Links>
<First i:nil="true" />
<Last i:nil="true" />
<Next i:nil="true" />
<Previous i:nil="true" />
<Self i:nil="true" />
</Links>
<Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Messages>
<ResultType>
<Code>Success</Code>
<Message>Success</Message>
</ResultType>
<responseObjectType>responseInstance<book></responseObjectType>
<Data>
<ApiUrl>
<href>/books/sample string 5</href>
</ApiUrl>
<ResourceObjectType>book</ResourceObjectType>
<BookId>1</BookId>
<BookName>sample string 2</BookName>
<ChapterCount>3</ChapterCount>
</Data>
</ResponseInstance>