**Question: **
Write an application that calls the sample API and get all the unique posts by Post Id. Use your own Http Client of your choice
API: https://jsonplaceholder.typicode.com/posts/1 Write a Simple function to count the unique characters in the body and the count of the same.
Note:
- Code is written considering this Sample API : https://jsonplaceholder.typicode.com/posts/1
- Application reads input URL from command Line example: https://jsonplaceholder.typicode.com/posts/1
****Kindly note that I have done the basic implementation with java code considering the limited time frame. ** **
Few Basic Level Improvements can be also be done:
- Improve Exception handling by adding custom exceptions, handling different generic response codes.
- Add URL validations.
- More test cases.
- Proper Logging using sl4j or log4j.
- configure url in application.properties
- Can be implemented with spring boot by calling this functionality using api or other framework.
- Javadoc can be added.