POST api/TermsAndConditions

Request Information

URI Parameters

None.

Body Parameters

TermsAndConditionsModel
NameDescriptionTypeAdditional information
TermsID

integer

None.

Text

string

None.

Request Formats

application/json, text/json

Sample:
{
  "TermsID": 1,
  "Text": "sample string 2"
}

application/xml, text/xml

Sample:
<TermsAndConditionsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models.TermsAndConditions">
  <TermsID>1</TermsID>
  <Text>sample string 2</Text>
</TermsAndConditionsModel>

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 'TermsAndConditionsModel'.

Response Information

Resource Description

TermsAndCondition
NameDescriptionTypeAdditional information
TermsID

integer

None.

Text

string

None.

Response Formats

application/json, text/json

Sample:
{
  "TermsID": 1,
  "Text": "sample string 2"
}

application/xml, text/xml

Sample:
<TermsAndCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_10RuleAPI.Models">
  <TermsID>1</TermsID>
  <Text>sample string 2</Text>
</TermsAndCondition>