Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

github.com/E-PSN/weather-api

Package Overview
Dependencies
0
Maintainers
0
Issues
File Explorer

github.com/E-PSN/weather-api

    v0.0.0-20210608165736-443043a6c59b

Version published
Maintainers
0

Readme

weather-api

A REST API to check the current weather.

https://goweather.herokuapp.com/weather/Santorini
https://goweather.herokuapp.com/weather/{city}

Build

go build

Run

./weather-api

Usage

curl http://localhost:3000/weather/{city}

Example

Request
curl http://localhost:3000/weather/Santorini
Response
{  
   "temperature":"29 °C",
   "wind":"20 km/h",
   "description":"Partly cloudy",
   "forecast":[  
      {  
         "day":1,
         "temperature":"27 °C",
         "wind":"12 km/h"
      },
      {  
         "day":2,
         "temperature":"22 °C",
         "wind":"8 km/h"
      }
   ]
}

FAQs

Last updated on 08 Jun 2021

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc