if api request success, return result parameter in api response