Skip to content

tusharseth1990/Assignment_stg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Assignment_stg

**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:

  1. Code is written considering this Sample API : https://jsonplaceholder.typicode.com/posts/1
  2. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages