Requirement: The account data that was coming from other application in JSON was in bulk and on the basis of Account Id we need to update the Account data in salesforce org. To avoid any error we thought to update the date in salesforce using batch. 
In this post we are making one RestResource API class that will provide the URL mapping which will be used to hit from other application. The data that will be in JSON and in bulk needed to process in batch so we call batch from that class that will handle the data.

Post Credit :- I also thanks to my friend SAI PARJANYA for this article