fixing issues in rest api
Merge branch 'master' of https://github.com/wso2/enterprise-store