POST api/test/date

Request Information

URI Parameters

None.

Body Parameters

TestModel
NameDescriptionTypeAdditional information
datetimeoffset

date

None.

text

string

None.

datetime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "datetimeoffset": "2025-05-30T07:06:35+03:00",
  "text": "sample string 2",
  "datetime": "2025-05-30T07:06:35"
}

text/html

Sample:
{"datetimeoffset":"2025-05-30T07:06:35+03:00","text":"sample string 2","datetime":"2025-05-30T07:06:35"}

application/xml, text/xml

Sample:
<TestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Metib.Modules.Factoring.Api.Controllers">
  <datetime>2025-05-30T07:06:35.1841061+03:00</datetime>
  <datetimeoffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-05-30T04:06:35.1841061Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>180</d2p1:OffsetMinutes>
  </datetimeoffset>
  <text>sample string 2</text>
</TestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TestModel
NameDescriptionTypeAdditional information
datetimeoffset

date

None.

text

string

None.

datetime

date

None.

Response Formats

application/json, text/json

Sample:
{
  "datetimeoffset": "2025-05-30T07:06:35+03:00",
  "text": "sample string 2",
  "datetime": "2025-05-30T07:06:35"
}

text/html

Sample:
{"datetimeoffset":"2025-05-30T07:06:35+03:00","text":"sample string 2","datetime":"2025-05-30T07:06:35"}

application/xml, text/xml

Sample:
<TestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Metib.Modules.Factoring.Api.Controllers">
  <datetime>2025-05-30T07:06:35.1841061+03:00</datetime>
  <datetimeoffset xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <d2p1:DateTime>2025-05-30T04:06:35.1841061Z</d2p1:DateTime>
    <d2p1:OffsetMinutes>180</d2p1:OffsetMinutes>
  </datetimeoffset>
  <text>sample string 2</text>
</TestModel>