GET api/weather/{postcode}/{countrycode}

Find the weather based on postcode numbers and country code

Request Information

URI Parameters

NameDescriptionTypeAdditional information
postcode

2313

integer

Required

countrycode

nl

string

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:30:55.2725516+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:30:55.2725516+01:00</LastUpdate>
  <Temperature>2.1</Temperature>
  <Type>Unassigned</Type>
</Weather>