POST api/Journal

Request Information

URI Parameters

None.

Body Parameters

JournalEntryDto
NameDescriptionTypeAdditional information
Id

integer

None.

CreatedOn

date

None.

UpdatedOn

date

None.

Title

string

None.

Body

string

None.

isImportant

boolean

None.

UserId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedOn": "2019-07-20T03:29:42.6601532-04:00",
  "UpdatedOn": "2019-07-20T03:29:42.6601532-04:00",
  "Title": "sample string 4",
  "Body": "sample string 5",
  "isImportant": true,
  "UserId": "0ebc4489-980e-444a-89e9-c1da78af89f8"
}

application/xml, text/xml

Sample:
<JournalEntryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <Body>sample string 5</Body>
  <CreatedOn>2019-07-20T03:29:42.6601532-04:00</CreatedOn>
  <Id>1</Id>
  <Title>sample string 4</Title>
  <UpdatedOn>2019-07-20T03:29:42.6601532-04:00</UpdatedOn>
  <UserId>0ebc4489-980e-444a-89e9-c1da78af89f8</UserId>
  <isImportant>true</isImportant>
</JournalEntryDto>

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

Response Information

Resource Description

JournalEntryDto
NameDescriptionTypeAdditional information
Id

integer

None.

CreatedOn

date

None.

UpdatedOn

date

None.

Title

string

None.

Body

string

None.

isImportant

boolean

None.

UserId

globally unique identifier

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CreatedOn": "2019-07-20T03:29:42.6611517-04:00",
  "UpdatedOn": "2019-07-20T03:29:42.6611517-04:00",
  "Title": "sample string 4",
  "Body": "sample string 5",
  "isImportant": true,
  "UserId": "b433487c-e7f5-4b5e-aada-366d6490b01d"
}

application/xml, text/xml

Sample:
<JournalEntryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.DTO">
  <Body>sample string 5</Body>
  <CreatedOn>2019-07-20T03:29:42.6611517-04:00</CreatedOn>
  <Id>1</Id>
  <Title>sample string 4</Title>
  <UpdatedOn>2019-07-20T03:29:42.6611517-04:00</UpdatedOn>
  <UserId>b433487c-e7f5-4b5e-aada-366d6490b01d</UserId>
  <isImportant>true</isImportant>
</JournalEntryDto>