Categorygithub.com/cortezzIP/Weather-API
module
0.0.0-20241103141504-147f48471d5c
Repository: https://github.com/cortezzip/weather-api.git
Documentation: pkg.go.dev

# README

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

# Packages

No description provided by the author
Package docs Code generated by swaggo/swag.