You need to re-invent the wheel of writing the API's for your requirement.