POST api/SendForm

Request Information

URI Parameters

None.

Body Parameters

Form
NameDescriptionTypeAdditional information
Language

string

None.

FormCategory

string

None.

NameLastname

string

None.

Phone

string

None.

Email

string

None.

Message

string

None.

PersonType

string

None.

CompanyName

string

None.

Name

string

None.

Lastname

string

None.

Period

string

None.

City

string

None.

StoreCity

string

None.

Address

string

None.

isExperienced

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Language": "sample string 1",
  "FormCategory": "sample string 2",
  "NameLastname": "sample string 3",
  "Phone": "sample string 4",
  "Email": "sample string 5",
  "Message": "sample string 6",
  "PersonType": "sample string 7",
  "CompanyName": "sample string 8",
  "Name": "sample string 9",
  "Lastname": "sample string 10",
  "Period": "sample string 11",
  "City": "sample string 12",
  "StoreCity": "sample string 13",
  "Address": "sample string 14",
  "isExperienced": "sample string 15"
}

application/xml, text/xml

Sample:
<Form xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Controllers">
  <Address>sample string 14</Address>
  <City>sample string 12</City>
  <CompanyName>sample string 8</CompanyName>
  <Email>sample string 5</Email>
  <FormCategory>sample string 2</FormCategory>
  <Language>sample string 1</Language>
  <Lastname>sample string 10</Lastname>
  <Message>sample string 6</Message>
  <Name>sample string 9</Name>
  <NameLastname>sample string 3</NameLastname>
  <Period>sample string 11</Period>
  <PersonType>sample string 7</PersonType>
  <Phone>sample string 4</Phone>
  <StoreCity>sample string 13</StoreCity>
  <isExperienced>sample string 15</isExperienced>
</Form>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Form'.

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
StatusCode

integer

None.

StatusMessage

string

None.

ErrorType

string

None.

ObjectList

Object

None.

ObjectList2

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 1,
  "StatusMessage": "sample string 2",
  "ErrorType": "sample string 3",
  "ObjectList": {},
  "ObjectList2": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RentACarService.Models">
  <ErrorType>sample string 3</ErrorType>
  <ObjectList />
  <ObjectList2 />
  <StatusCode>1</StatusCode>
  <StatusMessage>sample string 2</StatusMessage>
</ServiceResponse>