GET api/WeatherForecast
Get list of Weather Forecast
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of WeatherForecastName | Description | Type | Additional information |
---|---|---|---|
Id |
Gets or sets the ID of the weather forecast. |
integer |
None. |
Temperature |
Gets or sets the temperature in degrees Celsius. |
decimal number |
None. |
Weather |
Gets or sets the weather description. |
string |
None. |
Day |
Gets or sets the day of the weather forecast. |
string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Id": 1, "Temperature": 2.1, "Weather": "sample string 3", "Day": "sample string 4" }, { "Id": 1, "Temperature": 2.1, "Weather": "sample string 3", "Day": "sample string 4" } ]
application/xml, text/xml
Sample:
<ArrayOfWeatherForecast xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OTJServices.Models"> <WeatherForecast> <Day>sample string 4</Day> <Id>1</Id> <Temperature>2.1</Temperature> <Weather>sample string 3</Weather> </WeatherForecast> <WeatherForecast> <Day>sample string 4</Day> <Id>1</Id> <Temperature>2.1</Temperature> <Weather>sample string 3</Weather> </WeatherForecast> </ArrayOfWeatherForecast>