POST api/BabyDevelopment/PostBabyImage

Request Information

URI Parameters

None.

Body Parameters

ChildImageDto
NameDescriptionTypeAdditional information
Id

integer

None.

FileUpload

Collection of byte

None.

FileName

string

None.

MonthId

integer

None.

ChildId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "FileUpload": "QEA=",
  "FileName": "sample string 2",
  "MonthId": 3,
  "ChildId": 4
}

application/xml, text/xml

Sample:
<ChildImageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <ChildId>4</ChildId>
  <FileName>sample string 2</FileName>
  <FileUpload>QEA=</FileUpload>
  <Id>1</Id>
  <MonthId>3</MonthId>
</ChildImageDto>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.