Skip to content

neerazz/Wether-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Weather App

This is a weather app that provides today and the following day weather (real data)

###Running the project

  • This is a MAVEN spring boot project.
  • Import the maven project into your favorite IDE
  • Start the spring boot server from command line or IDE and navigate to http://localhost:8080

Implementation details

####UI

  • A webpage that display the weather from two REST End Points.

####REST API

  • There are two REST API's
Gives hourly weather forecast for a particular day and zipcode

Eg: http://localhost:8080/api/1/28217

  • day - Valid values are 0 (today), 1 (tomorrow)
  • zipCode - Valid US Zip Code
  • Data returned by this API is real and comes from weatherbit API.
Gives lowest temperature for a particular day and zipcode

Eg: http://localhost:8080/api/1/28217/lowest

  • day - Valid values are 0 (today), 1 (tomorrow)
  • zipCode - Valid US Zip Code
  • Data returned by this API is real and comes from weatherbit API.

####Testing

  • I have written two JUnit test cases for both of these End Points using Mockito to mock.
  • They can be found in AssignmentApplicationTests.java class.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published