Search in sources :

Example 1 with UnDeployedAPIRevisionDTO

use of org.wso2.carbon.apimgt.internal.service.dto.UnDeployedAPIRevisionDTO in project carbon-apimgt by wso2.

the class ApisApiServiceImpl method unDeployedAPIRevision.

@Override
public Response unDeployedAPIRevision(UnDeployedAPIRevisionDTO unDeployedAPIRevisionDTO, MessageContext messageContext) throws APIManagementException {
    APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();
    apiProvider.removeUnDeployedAPIRevision(unDeployedAPIRevisionDTO.getApiUUID(), unDeployedAPIRevisionDTO.getRevisionUUID(), unDeployedAPIRevisionDTO.getEnvironment());
    return Response.ok().build();
}
Also used : APIProvider(org.wso2.carbon.apimgt.api.APIProvider)

Aggregations

APIProvider (org.wso2.carbon.apimgt.api.APIProvider)1