🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/cortezzIP/Weather-API

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cortezzIP/Weather-API

v0.0.0-20241103141504-147f48471d5c
Source
Go
Version published
Created
Source

Weather-API

Documentation

Get Current Weather

This endpoint retrieves the current weather for a specific location.

Request

  • Method: GET

  • URL: localhost:8080/api/weather/current

  • Query Parameters:

    • location (string, required): The location for which the weather is to be retrieved, e.g. "Moscow"

Response

  • Status: 200

  • Content-Type: application/json

  • Body:

{
    "location": {
        "name": "Moscow",
        "country": "Russia"
    },
    "current": {
        "condition": {
            "text": "Partly cloudy"
        },
        "temp_c": 0.2
    }
}

Architecture visualization

Weather API architecture visualisation

FAQs

Package last updated on 03 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts