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": "2024-04-20T14:10:13.6103866+02: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>2024-04-20T14:10:13.6103866+02:00</LastUpdate>
  <Temperature>2.1</Temperature>
  <Type>Unassigned</Type>
</Weather>