Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanv92/weather-forecast-api-for-tallinn
Weather Forecast API for Tallinn
https://github.com/sanv92/weather-forecast-api-for-tallinn
Last synced: 2 months ago
JSON representation
Weather Forecast API for Tallinn
- Host: GitHub
- URL: https://github.com/sanv92/weather-forecast-api-for-tallinn
- Owner: sanv92
- Created: 2019-09-30T02:53:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-02T05:30:11.000Z (over 5 years ago)
- Last Synced: 2024-05-07T18:25:45.409Z (9 months ago)
- Language: Java
- Homepage: https://weather-api-for-tallinn.herokuapp.com/api/forecasts/places
- Size: 87.9 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather API for Tallinn
## Installation
### Clone Repository
```
git clone https://github.com/SanderV1992/Weather-Forecast-API-for-Tallinn.git
```### Project build
```
mvn clean install
```### Project start
```
mvn --projects application spring-boot:run
mvn --projects application spring-boot:run -Drun.jvmArguments='-Dserver.port=8081'
```### Run jar file
```
java -jar ./application/target/application-1.0.jar
```---
### Swagger
https://weather-api-for-tallinn.herokuapp.com/api/swagger-ui.html---
## Api Documentation
| resource | description |
|:--------------|:----------------------------------|
| `/api/forecasts/places` | returns a list of places
| `/api/forecasts/places/temperature` | returns a list of places, filtered by temperature
| `/api/forecasts/places/winds` | returns a list of places, filtered by winds
| `/api/forecasts/phenomenon-types` | returns a list of phenomenon types
| `/api/forecasts/time-of-day-types` | returns a list of time of day types
| `/api/forecasts/place-types` | returns a list of place types
| `/api/forecasts/wind-types` | returns a list of wind types