Giter Site home page Giter Site logo

csegeek / weather-info-for-pincode Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 72 KB

A Spring Boot Application with REST API for weather information for a particular day and a Pincode

Java 100.00%
datajpa java junit5 mockito openweather-api restful-api spring-boot weather-forecast weather-information resttemplate

weather-info-for-pincode's Introduction

Weather Info for Pincode

A Spring Boot Application with REST API for weather information for a particular day and a Pincode using OpenWeather API (https://openweathermap.org/api/history-api-timestamp) and OpenWeather GeoCoding API (https://openweathermap.org/api/geocoding-api).

Request

GET: /weather
GET 'http://localhost:8080/weather?pincode={pincode}&for_date={date}'

Parameters

pincode required
date required

Example of API Call

'http://localhost:8080/weather?pincode=411014&for_date=2020-10-15'

Example of API Response

{
    "pincode": 411014,
    "place": "Viman Nagar",
    "date": "2020-10-15",
    "temperature": 298.67,
    "humidity": 24,
    "pressure": 1017,
    "windSpeed": 0.41,
    "description": "clear sky"
}

Technology

  1. Java
  2. Spring Boot
  3. Spring Data Jpa
  4. Mysql
  5. Junit5 and Mockito(Unit Testing)
  6. REST API
  7. RestTemplate

weather-info-for-pincode's People

Contributors

csegeek avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.