https://github.com/neerazz/wether-service
https://github.com/neerazz/wether-service
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/neerazz/wether-service
- Owner: neerazz
- Created: 2020-05-11T17:41:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T17:41:36.000Z (over 5 years ago)
- Last Synced: 2025-01-16T17:02:43.410Z (12 months ago)
- Language: Java
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#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
##### First End Point - http://localhost:8080/api/day/zipcode
##### 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.
##### Second End Point - http://localhost:8080/api/day/zipcode/lowest
##### 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.