POST api/books/add

Request Information

URI Parameters

None.

Body Parameters

AddBookRequest
NameDescriptionTypeAdditional information
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:
{
  "SellerId": 1,
  "Title": "sample string 2",
  "Author": "sample string 3",
  "Category": "sample string 4",
  "Description": "sample string 5",
  "Price": 6.0,
  "Condition": "sample string 7",
  "StockQuantity": 8,
  "Active": true
}

application/xml, text/xml

Sample:
<AddBookRequest 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 3</Author>
  <Category>sample string 4</Category>
  <Condition>sample string 7</Condition>
  <Description>sample string 5</Description>
  <Price>6</Price>
  <SellerId>1</SellerId>
  <StockQuantity>8</StockQuantity>
  <Title>sample string 2</Title>
</AddBookRequest>

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.