Skip to content

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherApi

  • This is the express and node based weather api that consumes the open weather api to fetch the information for the weather.
  • This the version one of the api and is completely documeneted.

Link for express api -:

https://my-weather-apiii.herokuapp.com/fetchWeather

Link for site with web application -:

https://weatherspy.herokuapp.com/

About WeatherSpy(web appliocation) -:

Weather spy is a web application that fetches the various imformation from open weather api and present it to the user when the user searches for the city. https://github.com/SANKALP1011/WeatherApp

Backend

Node.js Express.js

Database

Mysql

Deployment

Heroku

Routes

There are three routes in the api which are dynamic -:

  • getWeather/City -: (get route)
  • getWeather/City -: (Post route)
    • This is a post route where when the user searches any city , it will fetch the information of that city and then add it to the database which help in saving the information like this -:
[
    {
        "City": "Lucknow",
        "Temp": 24.99
    },
    {
        "City": "Mumbai",
        "Temp": 29.99
    }
]
  • fetchWeather -: (get route)
[
    {
        "City": "Lucknow",
        "Temp": 24.99
    },
    {
        "City": "Mumbai",
        "Temp": 29.99
    }
]

Testing

All the routes are tested on the postman.

About

This is the express and node based dynamic api that uses open weather api to fetch the information of the weather of the particular city that user gave in url parameter.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages