POST api/Languages

Request Information

URI Parameters

None.

Body Parameters

Language
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

Required

Max length: 2

Min length: 2

Name

string

Required

LanguageSetName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "Name": "sample string 3",
  "LanguageSetName": "sample string 4"
}

application/xml, text/xml

Sample:
<Language xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DB.Models">
  <Code>sample string 2</Code>
  <Id>1</Id>
  <LanguageSetName>sample string 4</LanguageSetName>
  <Name>sample string 3</Name>
</Language>

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

Response Information

Resource Description

Language
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

Required

Max length: 2

Min length: 2

Name

string

Required

LanguageSetName

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "Name": "sample string 3",
  "LanguageSetName": "sample string 4"
}

application/xml, text/xml

Sample:
<Language xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DB.Models">
  <Code>sample string 2</Code>
  <Id>1</Id>
  <LanguageSetName>sample string 4</LanguageSetName>
  <Name>sample string 3</Name>
</Language>