working on posted data in server side for api calls.