Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larsgroeber/weather-api
https://github.com/larsgroeber/weather-api
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/larsgroeber/weather-api
- Owner: larsgroeber
- Created: 2020-04-18T15:55:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T14:49:25.000Z (over 4 years ago)
- Last Synced: 2024-10-18T23:12:49.384Z (about 1 month ago)
- Language: Java
- Size: 53.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weather API
Simple weather API written using Java 11 and Spring Boot.
## Instructions
Add your [OpenWeather](https://openweathermap.org/api) api key to `src/main/resources/application.properties`.
Start the application:
```bash
mvn spring-boot:run
```By default the application runs on port 8080.
```bash
curl http://localhost:8080/api/weather/current\?location\=frankfurtcurl http://localhost:8080/api/weather/forecast\?location\=frankfurt
```