[configuration-store] endpoint
Remove unused API operations for phase 01
@@ -30,6 +30,7 @@ import org.wso2.carbon.identity.configuration.mgt.endpoint.exception.SearchCondi
import javax.ws.rs.core.Response;
import static org.wso2.carbon.identity.configuration.mgt.endpoint.util.ConfigurationEndpointUtils.getConfigurationManager;
+import static org.wso2.carbon.identity.configuration.mgt.endpoint.util.ConfigurationEndpointUtils.getResourcesDTO;
import static org.wso2.carbon.identity.configuration.mgt.endpoint.util.ConfigurationEndpointUtils.getSearchCondition;
import static org.wso2.carbon.identity.configuration.mgt.endpoint.util.ConfigurationEndpointUtils.handleBadRequestResponse;
import static org.wso2.carbon.identity.configuration.mgt.endpoint.util.ConfigurationEndpointUtils.handleSearchQueryParseError;
@@ -47,7 +48,7 @@ public class SearchApiServiceImpl extends SearchApiService {
Resources resources = getConfigurationManager().getTenantResources(
getSearchCondition(searchContext, ResourceSearchBean.class, LOG)
);
- return Response.ok().entity(resources).build();
+ return Response.ok().entity(getResourcesDTO(resources)).build();
} catch (SearchParseException | SearchConditionException e) {
return handleSearchQueryParseError(e, LOG);
} catch (ConfigurationManagementClientException e) {
