GET api/weather/{postcode}

Find the weather based on postcode numbers

Request Information

URI Parameters

NameDescriptionTypeAdditional information
postcode

2313

integer

Required

Body Parameters

None.

Response Information

Resource Description

Weather
NameDescriptionTypeAdditional information
LastUpdate

date

None.

Temperature

decimal number

None.

Type

WeatherType

None.

Response Formats

application/json, text/json

Sample:
{
  "LastUpdate": "2019-11-23T00:06:34.480895+01:00",
  "Temperature": 2.1,
  "Type": 0
}

application/xml, text/xml

Sample:
<Weather xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Interpulse.Services.ViewModels.Shared.Models">
  <LastUpdate>2019-11-23T00:06:34.480895+01:00</LastUpdate>
  <Temperature>2.1</Temperature>
  <Type>Unassigned</Type>
</Weather>