Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.6 KB

README.md

File metadata and controls

35 lines (22 loc) · 1.6 KB

-Weather-forecast-Project

Write a server by using SpringBoot Java and integrate Weather API from Rapid API. On the basis of that integration, expose your RESTful APIs as follows with JSON response. Authentication Method: Header-based authentication with random client id and random client secret

How to Run Project

  1. Download the zip folder
  2. Import Project in Tools(Eclips, STS).
  3. Build the project
  4. Run the Project Run as-> Spring boot app

output of 2 API

API 1: Get the Weather forecast summary of Any city using API (RapidApiGetForecastSummaryByLocationName)

In the below picture geeting output for Forecast Summary By Location Name image

API 2: Get hourly Weather forecast details of Any city using API (RapidApiGetHourlyForecastByLocationName)

In the below picture geeting output for Hourly Forecast By Location Name image

follow the steps for output

  1. step1: Use default issuer for access tocken {https://dev-64151434.okta.com/oauth2/default}
  2. step2: For access tocke we need to set authorization header a) type-> basic Auth b) username-> Client ID c) password-> CLIENT SECRETS
  3. d) in body we need to enter key and value After authorization header will be automatically generated when you send the request.

4)Access tocken 227787690-243802b3-432b-41cc-9995-17437a3fcc87