POST API/Common/FAQ?action={action}

Manage FAQ Action : Get/Add/Delete/Update/GetById/GetAll/Like/Unlike

Request Information

URI Parameters

NameDescriptionTypeAdditional information
action

Action : Get: To get frequently Asked Questions for the Product, Add: To add question and answer to the Product, FAQId is the required parameter for delete/Update/GetById an FAQ, GetAll: FAQId=0 to getall frequently Asked Questions for the Product, Like:Update likes for the given FAQ, Unlike: Update likes for the given FAQ

string

Required

Body Parameters

FAQ Entity

FAQ
NameDescriptionTypeAdditional information
FAQId

integer

None.

Question

string

None.

Answer

string

None.

FAQType

string

None.

FAQTypeId

integer

None.

LoginId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "faqId": 1,
  "question": "sample string 1",
  "answer": "sample string 2",
  "faqType": "sample string 3",
  "faqTypeId": 4,
  "loginId": "sample string 5"
}

application/xml, text/xml

Sample:
<FAQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrownCow.Customer.EntityLayer">
  <Answer>sample string 2</Answer>
  <FAQId>1</FAQId>
  <FAQType>sample string 3</FAQType>
  <FAQTypeId>4</FAQTypeId>
  <LoginId>sample string 5</LoginId>
  <Question>sample string 1</Question>
</FAQ>

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.