https://github.com/larsgroeber/weather-api
https://github.com/larsgroeber/weather-api
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/larsgroeber/weather-api
- Owner: larsgroeber
- Created: 2020-04-18T15:55:52.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T14:49:25.000Z (about 5 years ago)
- Last Synced: 2024-12-31T05:19:24.086Z (7 months 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
```