POST api/feedback/add

Request Information

URI Parameters

None.

Body Parameters

FeedbackViewModel
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

Required

Max length: 250

Phone

string

Max length: 50

Email

string

Max length: 250

Message

string

Max length: 500

CreatedDate

date

None.

Status

boolean

Required

ContactDetail

ContactDetailViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "Phone": "sample string 3",
  "Email": "sample string 4",
  "Message": "sample string 5",
  "CreatedDate": "2020-04-09T17:42:49.9306992+07:00",
  "Status": true,
  "ContactDetail": {
    "ID": 1,
    "Name": "sample string 2",
    "Phone": "sample string 3",
    "Email": "sample string 4",
    "Facebook": "sample string 5",
    "Logo": "sample string 6",
    "Website": "sample string 7",
    "Address": "sample string 8",
    "Description": "sample string 9",
    "Other": "sample string 10",
    "TaxIdentificationNumber": 1,
    "BankCode": "sample string 11",
    "Lat": 1.1,
    "Lng": 1.1,
    "Status": true
  }
}

application/xml, text/xml

Sample:
<FeedbackViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeduShop.Web.Models">
  <ContactDetail>
    <Address>sample string 8</Address>
    <BankCode>sample string 11</BankCode>
    <Description>sample string 9</Description>
    <Email>sample string 4</Email>
    <Facebook>sample string 5</Facebook>
    <ID>1</ID>
    <Lat>1.1</Lat>
    <Lng>1.1</Lng>
    <Logo>sample string 6</Logo>
    <Name>sample string 2</Name>
    <Other>sample string 10</Other>
    <Phone>sample string 3</Phone>
    <Status>true</Status>
    <TaxIdentificationNumber>1</TaxIdentificationNumber>
    <Website>sample string 7</Website>
  </ContactDetail>
  <CreatedDate>2020-04-09T17:42:49.9306992+07:00</CreatedDate>
  <Email>sample string 4</Email>
  <ID>1</ID>
  <Message>sample string 5</Message>
  <Name>sample string 2</Name>
  <Phone>sample string 3</Phone>
  <Status>true</Status>
</FeedbackViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.