GET api/Sleep/GetSleepSuggestion?language={language}

随机生成睡眠建议

Request Information

URI Parameters

NameDescriptionTypeAdditional information
language

string

Default value is zn-ch

Body Parameters

tblSleep
NameDescriptionTypeAdditional information
id

integer

None.

pid

integer

None.

uniqueid

string

None.

startime

date

None.

endtime

date

None.

sleeptime

integer

None.

date

string

None.

audioUrls

string

None.

deepsleeptime

integer

None.

shallowsleeptime

integer

None.

waketime

integer

None.

insleeptime

integer

None.

intime

date

None.

score

decimal number

None.

deepsleepstate

string

None.

shallowsleepstate

string

None.

sleeptimestate

string

None.

insleeptimestate

string

None.

intimestate

string

None.

voicestate

string

None.

avgvoice

integer

None.

waketimestate

string

None.

endtimestate

string

None.

suggestion

string

None.

likecount

integer

None.

system

string

None.

audiocount

integer

None.

earlsleepvalue

integer

None.

earlygetupvalue

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "pid": 1,
  "uniqueid": "sample string 2",
  "startime": "2020-09-22T18:56:45.2178307+08:00",
  "endtime": "2020-09-22T18:56:45.2178307+08:00",
  "sleeptime": 1,
  "date": "sample string 3",
  "audioUrls": "sample string 4",
  "deepsleeptime": 1,
  "shallowsleeptime": 1,
  "waketime": 1,
  "insleeptime": 1,
  "intime": "2020-09-22T18:56:45.2178307+08:00",
  "score": 1.0,
  "deepsleepstate": "sample string 5",
  "shallowsleepstate": "sample string 6",
  "sleeptimestate": "sample string 7",
  "insleeptimestate": "sample string 8",
  "intimestate": "sample string 9",
  "voicestate": "sample string 10",
  "avgvoice": 1,
  "waketimestate": "sample string 11",
  "endtimestate": "sample string 12",
  "suggestion": "sample string 13",
  "likecount": 14,
  "system": "sample string 15",
  "audiocount": 16,
  "earlsleepvalue": 17,
  "earlygetupvalue": 18
}

application/xml, text/xml

Sample:
<tblSleep xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DbRes">
  <audioUrls>sample string 4</audioUrls>
  <audiocount>16</audiocount>
  <avgvoice>1</avgvoice>
  <date>sample string 3</date>
  <deepsleepstate>sample string 5</deepsleepstate>
  <deepsleeptime>1</deepsleeptime>
  <earlsleepvalue>17</earlsleepvalue>
  <earlygetupvalue>18</earlygetupvalue>
  <endtime>2020-09-22T18:56:45.2178307+08:00</endtime>
  <endtimestate>sample string 12</endtimestate>
  <id>1</id>
  <insleeptime>1</insleeptime>
  <insleeptimestate>sample string 8</insleeptimestate>
  <intime>2020-09-22T18:56:45.2178307+08:00</intime>
  <intimestate>sample string 9</intimestate>
  <likecount>14</likecount>
  <pid>1</pid>
  <score>1</score>
  <shallowsleepstate>sample string 6</shallowsleepstate>
  <shallowsleeptime>1</shallowsleeptime>
  <sleeptime>1</sleeptime>
  <sleeptimestate>sample string 7</sleeptimestate>
  <startime>2020-09-22T18:56:45.2178307+08:00</startime>
  <suggestion>sample string 13</suggestion>
  <system>sample string 15</system>
  <uniqueid>sample string 2</uniqueid>
  <voicestate>sample string 10</voicestate>
  <waketime>1</waketime>
  <waketimestate>sample string 11</waketimestate>
</tblSleep>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string</string>