Skip to content

davidPalechor/wheather-api

Repository files navigation

Weather status API

Dependencies

  • Docker 18.06.1
  • Docker compose 1.22.0

Running app

  • docker-compose build
  • docker-compose up
  • Go to localhost:8080/v1/{$ENDPOINT}

Available endpoints:

  • [GET] weather?city=$City&country=$Country where $City is city's name capitalized e.g. Bogota, London, etc. And $Country is the country code lowercased e.g. co (Colombia), uk (United Kingdom), ca (Canada), etc. (See a full code list here)
  • [PUT]scheduler/weather Params - {city: $City, country: $Country} following rules above.

Endpoint Swagger Docs

  • localhost:8080/swagger

Applying migrations

  • docker exec -it wheatherapi_web_1 bee migrate -conn="root:root@tcp(db:3306)/weather"

MySQL shell

  • docker exec -it wheatherapi_db_1 mysql -u root -proot"

Releases

No releases published

Packages

No packages published