POST api/SleepSum/WeekSum

Request Information

URI Parameters

None.

Body Parameters

WeekSumReq
NameDescriptionTypeAdditional information
uid

string

None.

page

integer

None.

count

integer

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "page": 2,
  "count": 3,
  "pid": 4,
  "version": "sample string 5",
  "imei": "sample string 6",
  "system": "sample string 7",
  "token": "sample string 8",
  "language": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<WeekSumReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <imei>sample string 6</imei>
  <language>sample string 9</language>
  <pid>4</pid>
  <system>sample string 7</system>
  <timeZone>sample string 10</timeZone>
  <token>sample string 8</token>
  <version>sample string 5</version>
  <count>3</count>
  <page>2</page>
  <uid>sample string 1</uid>
</WeekSumReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

WeekSumModelRes
NameDescriptionTypeAdditional information
weekSums

Collection of WeekSumModel

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "weekSums": [
    {
      "id": 1,
      "monday": "2020-09-22T18:55:47.3003544+08:00",
      "sunday": "2020-09-22T18:55:47.3003544+08:00",
      "XMonthXWeek": "sample string 4",
      "sleepDays": 5,
      "dreamDays": 6,
      "allSleepTime": 7,
      "allDeepSleepTime": 8,
      "avgScore": 9.0,
      "avgSleepTime": 10,
      "avgDeepSleepTime": 11,
      "avgStartTime": "sample string 12",
      "avgEndTime": "sample string 13",
      "startTimes": "sample string 14",
      "endTimes": "sample string 15",
      "earliestGetUpDay": "sample string 16",
      "latestGetUpDay": "sample string 17",
      "after24SleepDays": 18,
      "weekRank": 19,
      "sleepQualityCopy": "sample string 20",
      "allSleepTimeCopy": "sample string 21",
      "avgSleepTimeCopy": "sample string 22",
      "allDeepSleepTimeCopy": "sample string 23",
      "after24SleepCopy": "sample string 24",
      "startTimesVsCopy": "sample string 25",
      "endTimesVsCopy": "sample string 26",
      "avgSleepTimeVsCopy": "sample string 27",
      "avgDeepSleepTimeVsCopy": "sample string 28",
      "earliestGetUpDayCopy": "sample string 29",
      "latestGetUpDayCopy": "sample string 30",
      "dreamDaysCopy": "sample string 31",
      "sleepStatusSuggestion": "sample string 32",
      "dreamSuggestion": "sample string 33",
      "suggestion1": "sample string 34",
      "suggestion2": "sample string 35",
      "suggestion3": "sample string 36",
      "uid": "sample string 37",
      "pid": 38,
      "sleepTimes": "sample string 39",
      "SleepTimeChartModels": [
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        },
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        }
      ]
    },
    {
      "id": 1,
      "monday": "2020-09-22T18:55:47.3003544+08:00",
      "sunday": "2020-09-22T18:55:47.3003544+08:00",
      "XMonthXWeek": "sample string 4",
      "sleepDays": 5,
      "dreamDays": 6,
      "allSleepTime": 7,
      "allDeepSleepTime": 8,
      "avgScore": 9.0,
      "avgSleepTime": 10,
      "avgDeepSleepTime": 11,
      "avgStartTime": "sample string 12",
      "avgEndTime": "sample string 13",
      "startTimes": "sample string 14",
      "endTimes": "sample string 15",
      "earliestGetUpDay": "sample string 16",
      "latestGetUpDay": "sample string 17",
      "after24SleepDays": 18,
      "weekRank": 19,
      "sleepQualityCopy": "sample string 20",
      "allSleepTimeCopy": "sample string 21",
      "avgSleepTimeCopy": "sample string 22",
      "allDeepSleepTimeCopy": "sample string 23",
      "after24SleepCopy": "sample string 24",
      "startTimesVsCopy": "sample string 25",
      "endTimesVsCopy": "sample string 26",
      "avgSleepTimeVsCopy": "sample string 27",
      "avgDeepSleepTimeVsCopy": "sample string 28",
      "earliestGetUpDayCopy": "sample string 29",
      "latestGetUpDayCopy": "sample string 30",
      "dreamDaysCopy": "sample string 31",
      "sleepStatusSuggestion": "sample string 32",
      "dreamSuggestion": "sample string 33",
      "suggestion1": "sample string 34",
      "suggestion2": "sample string 35",
      "suggestion3": "sample string 36",
      "uid": "sample string 37",
      "pid": 38,
      "sleepTimes": "sample string 39",
      "SleepTimeChartModels": [
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        },
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        }
      ]
    }
  ],
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<WeekSumModelRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
  <weekSums>
    <WeekSumModel>
      <SleepTimeChartModels xmlns:d4p1="http://schemas.datacontract.org/2004/07/WeekMonthSum.Help">
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
      </SleepTimeChartModels>
      <XMonthXWeek>sample string 4</XMonthXWeek>
      <after24SleepCopy>sample string 24</after24SleepCopy>
      <after24SleepDays>18</after24SleepDays>
      <allDeepSleepTime>8</allDeepSleepTime>
      <allDeepSleepTimeCopy>sample string 23</allDeepSleepTimeCopy>
      <allSleepTime>7</allSleepTime>
      <allSleepTimeCopy>sample string 21</allSleepTimeCopy>
      <avgDeepSleepTime>11</avgDeepSleepTime>
      <avgDeepSleepTimeVsCopy>sample string 28</avgDeepSleepTimeVsCopy>
      <avgEndTime>sample string 13</avgEndTime>
      <avgScore>9</avgScore>
      <avgSleepTime>10</avgSleepTime>
      <avgSleepTimeCopy>sample string 22</avgSleepTimeCopy>
      <avgSleepTimeVsCopy>sample string 27</avgSleepTimeVsCopy>
      <avgStartTime>sample string 12</avgStartTime>
      <dreamDays>6</dreamDays>
      <dreamDaysCopy>sample string 31</dreamDaysCopy>
      <dreamSuggestion>sample string 33</dreamSuggestion>
      <earliestGetUpDay>sample string 16</earliestGetUpDay>
      <earliestGetUpDayCopy>sample string 29</earliestGetUpDayCopy>
      <endTimes>sample string 15</endTimes>
      <endTimesVsCopy>sample string 26</endTimesVsCopy>
      <id>1</id>
      <latestGetUpDay>sample string 17</latestGetUpDay>
      <latestGetUpDayCopy>sample string 30</latestGetUpDayCopy>
      <monday>2020-09-22T18:55:47.3003544+08:00</monday>
      <pid>38</pid>
      <sleepDays>5</sleepDays>
      <sleepQualityCopy>sample string 20</sleepQualityCopy>
      <sleepStatusSuggestion>sample string 32</sleepStatusSuggestion>
      <sleepTimes>sample string 39</sleepTimes>
      <startTimes>sample string 14</startTimes>
      <startTimesVsCopy>sample string 25</startTimesVsCopy>
      <suggestion1>sample string 34</suggestion1>
      <suggestion2>sample string 35</suggestion2>
      <suggestion3>sample string 36</suggestion3>
      <sunday>2020-09-22T18:55:47.3003544+08:00</sunday>
      <uid>sample string 37</uid>
      <weekRank>19</weekRank>
    </WeekSumModel>
    <WeekSumModel>
      <SleepTimeChartModels xmlns:d4p1="http://schemas.datacontract.org/2004/07/WeekMonthSum.Help">
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
      </SleepTimeChartModels>
      <XMonthXWeek>sample string 4</XMonthXWeek>
      <after24SleepCopy>sample string 24</after24SleepCopy>
      <after24SleepDays>18</after24SleepDays>
      <allDeepSleepTime>8</allDeepSleepTime>
      <allDeepSleepTimeCopy>sample string 23</allDeepSleepTimeCopy>
      <allSleepTime>7</allSleepTime>
      <allSleepTimeCopy>sample string 21</allSleepTimeCopy>
      <avgDeepSleepTime>11</avgDeepSleepTime>
      <avgDeepSleepTimeVsCopy>sample string 28</avgDeepSleepTimeVsCopy>
      <avgEndTime>sample string 13</avgEndTime>
      <avgScore>9</avgScore>
      <avgSleepTime>10</avgSleepTime>
      <avgSleepTimeCopy>sample string 22</avgSleepTimeCopy>
      <avgSleepTimeVsCopy>sample string 27</avgSleepTimeVsCopy>
      <avgStartTime>sample string 12</avgStartTime>
      <dreamDays>6</dreamDays>
      <dreamDaysCopy>sample string 31</dreamDaysCopy>
      <dreamSuggestion>sample string 33</dreamSuggestion>
      <earliestGetUpDay>sample string 16</earliestGetUpDay>
      <earliestGetUpDayCopy>sample string 29</earliestGetUpDayCopy>
      <endTimes>sample string 15</endTimes>
      <endTimesVsCopy>sample string 26</endTimesVsCopy>
      <id>1</id>
      <latestGetUpDay>sample string 17</latestGetUpDay>
      <latestGetUpDayCopy>sample string 30</latestGetUpDayCopy>
      <monday>2020-09-22T18:55:47.3003544+08:00</monday>
      <pid>38</pid>
      <sleepDays>5</sleepDays>
      <sleepQualityCopy>sample string 20</sleepQualityCopy>
      <sleepStatusSuggestion>sample string 32</sleepStatusSuggestion>
      <sleepTimes>sample string 39</sleepTimes>
      <startTimes>sample string 14</startTimes>
      <startTimesVsCopy>sample string 25</startTimesVsCopy>
      <suggestion1>sample string 34</suggestion1>
      <suggestion2>sample string 35</suggestion2>
      <suggestion3>sample string 36</suggestion3>
      <sunday>2020-09-22T18:55:47.3003544+08:00</sunday>
      <uid>sample string 37</uid>
      <weekRank>19</weekRank>
    </WeekSumModel>
  </weekSums>
</WeekSumModelRes>