Skip to content

mystpen/weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather API

REST API service in GO that interacts with weather data

Usage

  • To update or create data:
PUT /weather?location=London
  • To get current weather:
GET /weather?location=London
{
    "Location": "London",
    "Temperature": 11,
    "Description": "overcast clouds"
}

Run

  • Clone repository:
git clone git@github.com:mystpen/weather-api.git
  • Go to weather-api directory
  • Create config.yaml file with OpenWeatherMap api-token and mongodb database name:
token:
db_name: 
  • To run project:
make run
go run ./cmd/app/ .

About

REST API service in GO that interacts with weather data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published