We're going to make a weather API. There are lots of free APIs on the internet for this. We have included some API websites below. You can use other APIs if you wish.
Our main goal is to write an API to communicate with these APIs. Let's show the daily, weekly and monthly weather report according to the country / city information that we will get from the user.
The request will first come to the API you will code, then after you receive the request, you will request the free Weather APIs and return this information.
You can use the very easy to use RestTemplate class for this process.
What is expected of you
- Making a correct API structure.
- Making validations on your models or parameters.
- Handling exceptions.