POST api/books/update

Request Information

URI Parameters

None.

Body Parameters

UpdateBookRequest
NameDescriptionTypeAdditional information
BookId

integer

None.

SellerId

integer

None.

Title

string

None.

Author

string

None.

Category

string

None.

Description

string

None.

Price

decimal number

None.

Condition

string

None.

StockQuantity

integer

None.

Active

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "SellerId": 2,
  "Title": "sample string 3",
  "Author": "sample string 4",
  "Category": "sample string 5",
  "Description": "sample string 6",
  "Price": 7.0,
  "Condition": "sample string 8",
  "StockQuantity": 9,
  "Active": true
}

application/xml, text/xml

Sample:
<UpdateBookRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/bookLib_APIs.Controllers">
  <Active>true</Active>
  <Author>sample string 4</Author>
  <BookId>1</BookId>
  <Category>sample string 5</Category>
  <Condition>sample string 8</Condition>
  <Description>sample string 6</Description>
  <Price>7</Price>
  <SellerId>2</SellerId>
  <StockQuantity>9</StockQuantity>
  <Title>sample string 3</Title>
</UpdateBookRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.