POST api/SleepSum/DayInfo

获取用户某天的数据

Request Information

URI Parameters

None.

Body Parameters

DayInfoReq
NameDescriptionTypeAdditional information
pid

integer

None.

uniqueid

string

None.

date

date

None.

Request Formats

application/json, text/json

Sample:
{
  "pid": 1,
  "uniqueid": "sample string 2",
  "date": "2020-09-22T19:46:15.2832946+08:00"
}

application/xml, text/xml

Sample:
<DayInfoReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <date>2020-09-22T19:46:15.2832946+08:00</date>
  <pid>1</pid>
  <uniqueid>sample string 2</uniqueid>
</DayInfoReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SleepDayInfo
NameDescriptionTypeAdditional information
SleepTime

string

None.

SleepStartTime

string

None.

SleepEndTime

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SleepTime": "sample string 1",
  "SleepStartTime": "sample string 2",
  "SleepEndTime": "sample string 3"
}

application/xml, text/xml

Sample:
<SleepDayInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <SleepEndTime>sample string 3</SleepEndTime>
  <SleepStartTime>sample string 2</SleepStartTime>
  <SleepTime>sample string 1</SleepTime>
</SleepDayInfo>