POST api/v1/sendEbook

Request Information

URI Parameters

None.

Body Parameters

WebsiteAPI.Model.SendEbookRequest
NameDescriptionTypeAdditional information
name

string

None.

email

string

None.

ebookTitle

string

None.

ebookLink

string

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "email": "sample string 2",
  "ebookTitle": "sample string 3",
  "ebookLink": "sample string 4"
}

application/xml, text/xml

Sample:
<SendEbookRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebsiteAPI.Model">
  <EbookLink>sample string 4</EbookLink>
  <EbookTitle>sample string 3</EbookTitle>
  <Email>sample string 2</Email>
  <Name>sample string 1</Name>
</SendEbookRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'System.Web.Http.ModelBinding.JQueryMvcFormUrlEncodedFormatter' to write type 'WebsiteAPI.Model.SendEbookRequest'.

Response Information

Resource Description

System.Net.Http.HttpResponseMessage
NameDescriptionTypeAdditional information
Version

System.Version

None.

Content

System.Net.Http.HttpContent

None.

StatusCode

System.Net.HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

System.Net.Http.HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.