Skip to content
No description, website, or topics provided.
Java Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
gradle/wrapper
src
.gitignore
Dockerfile
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

forecast-weather-us

A simple micro-service that provide temperature information of a city

install dependencies

$ chmod +x gradlew
$ bash gradlew clean build --refresh-dependencies

run tests

$ bash gradlew test

run

$ bash gradlew bootRun

build and run a docker container

$ bash gradlew build docker
$ docker run -d --name forecast-weather -p 8091:8091 -t com.danielbohry/forecast-weather-us

API available requests

https://forecast-weather-us.herokuapp.com/swagger-ui.html sample running

http://localhost:8091/swagger-ui.html

GET http://localhost:8091/api/weather/madrid
{
    "cityName": "Madrid",
    "temperature": 16.35,
    "pressure": 1022
}
GET http://localhost:8091/api/weather/madrid/forecast    
{
    "cityName": "Madrid",
    "averageDaily": 17.49,
    "averageNightly": 12.82,
    "averagePressure": 962
}
You can’t perform that action at this time.