POST api/Weather/get

Request Information

URI Parameters

None.

Body Parameters

getweatherPost
NameDescriptionTypeAdditional information
city

string

None.

uid

账号id

integer

None.

token

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "city": "sample string 1",
  "uid": 2,
  "token": "sample string 3"
}

application/xml, text/xml

Sample:
<getweatherPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
  <token xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 3</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">2</uid>
  <city>sample string 1</city>
</getweatherPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

getweatherRes
NameDescriptionTypeAdditional information
yangli

string

None.

nongli

string

None.

type

string

None.

high

string

None.

low

string

None.

aqi

string

None.

aqiname

string

None.

fx

string

None.

fl

string

None.

juzi

string

None.

juzitype

integer

None.

Code

integer

None.

Msg

string

None.

Response Formats

application/json, text/json

Sample:
{
  "yangli": "sample string 1",
  "nongli": "sample string 2",
  "type": "sample string 3",
  "high": "sample string 4",
  "low": "sample string 5",
  "aqi": "sample string 6",
  "aqiname": "sample string 7",
  "fx": "sample string 8",
  "fl": "sample string 9",
  "juzi": "sample string 10",
  "juzitype": 11,
  "Code": 12,
  "Msg": "sample string 13"
}

application/xml, text/xml

Sample:
<getweatherRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Controllers">
  <Code xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">12</Code>
  <Msg xmlns="http://schemas.datacontract.org/2004/07/LyWebApi.Models">sample string 13</Msg>
  <aqi>sample string 6</aqi>
  <aqiname>sample string 7</aqiname>
  <fl>sample string 9</fl>
  <fx>sample string 8</fx>
  <high>sample string 4</high>
  <juzi>sample string 10</juzi>
  <juzitype>11</juzitype>
  <low>sample string 5</low>
  <nongli>sample string 2</nongli>
  <type>sample string 3</type>
  <yangli>sample string 1</yangli>
</getweatherRes>