POST api/PregnancyProgress

Request Information

URI Parameters

None.

Body Parameters

PregnancyProgressDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

BabySizeDescription

string

None.

Week

integer

None.

WeeksRemaining

integer

None.

LanguageId

integer

None.

LanguageCode

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "BabySizeDescription": "sample string 3",
  "Week": 4,
  "WeeksRemaining": 5,
  "LanguageId": 6,
  "LanguageCode": "sample string 7"
}

application/xml, text/xml

Sample:
<PregnancyProgressDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <BabySizeDescription>sample string 3</BabySizeDescription>
  <Id>1</Id>
  <LanguageCode>sample string 7</LanguageCode>
  <LanguageId>6</LanguageId>
  <Title>sample string 2</Title>
  <Week>4</Week>
  <WeeksRemaining>5</WeeksRemaining>
</PregnancyProgressDto>

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

Response Information

Resource Description

PregnancyProgressDto
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

BabySizeDescription

string

None.

Week

integer

None.

WeeksRemaining

integer

None.

LanguageId

integer

None.

LanguageCode

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "BabySizeDescription": "sample string 3",
  "Week": 4,
  "WeeksRemaining": 5,
  "LanguageId": 6,
  "LanguageCode": "sample string 7"
}

application/xml, text/xml

Sample:
<PregnancyProgressDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <BabySizeDescription>sample string 3</BabySizeDescription>
  <Id>1</Id>
  <LanguageCode>sample string 7</LanguageCode>
  <LanguageId>6</LanguageId>
  <Title>sample string 2</Title>
  <Week>4</Week>
  <WeeksRemaining>5</WeeksRemaining>
</PregnancyProgressDto>