POST api/Dictionary/{Id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Id

integer

Required

Body Parameters

Collection of DictionaryEntryDto
NameDescriptionTypeAdditional information
Id

integer

None.

Term

string

None.

Definition

string

None.

AlternateSpellings

Collection of string

None.

RelatedTerms

Collection of string

None.

LanguageId

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Term": "sample string 2",
    "Definition": "sample string 3",
    "AlternateSpellings": [
      "sample string 1",
      "sample string 2"
    ],
    "RelatedTerms": [
      "sample string 1",
      "sample string 2"
    ],
    "LanguageId": 4
  },
  {
    "Id": 1,
    "Term": "sample string 2",
    "Definition": "sample string 3",
    "AlternateSpellings": [
      "sample string 1",
      "sample string 2"
    ],
    "RelatedTerms": [
      "sample string 1",
      "sample string 2"
    ],
    "LanguageId": 4
  }
]

application/xml, text/xml

Sample:
<ArrayOfDictionaryEntryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <DictionaryEntryDto>
    <AlternateSpellings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </AlternateSpellings>
    <Definition>sample string 3</Definition>
    <Id>1</Id>
    <LanguageId>4</LanguageId>
    <RelatedTerms xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </RelatedTerms>
    <Term>sample string 2</Term>
  </DictionaryEntryDto>
  <DictionaryEntryDto>
    <AlternateSpellings xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </AlternateSpellings>
    <Definition>sample string 3</Definition>
    <Id>1</Id>
    <LanguageId>4</LanguageId>
    <RelatedTerms xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </RelatedTerms>
    <Term>sample string 2</Term>
  </DictionaryEntryDto>
</ArrayOfDictionaryEntryDto>

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 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.