- Receive a latitude/longitude from the user (you can use your own location longitude/latitude information).
- Find out the city based on the IP (you can use any external API to do so).
- Return the weather for the city (using any external weather API)
-
Find out the city with external API. Link
-
Return the weather for the city with external weather API Link
-
The application should be an API to be called and should return all the information (city name, weather details). Your test will be evaluated on the basis of, API correctness, C# programming knowledge, third-party API integration, and best practices. We will test the API endpoint using Postman, please use valid names for the endpoints and the data to be uploaded.
- Load project in visual studio code.
- Run the Project, It automatically redirects to the URL which contains my latitude and longitude information. https://localhost:44374/api/getweather/lat=24.904300&lon=67.081700
- Open link in Postman, Which Return the Json Response