API testing codes by Babu