Search in sources :

Example 1 with SequencesDTO

use of org.wso2.carbon.apimgt.rest.api.gateway.dto.SequencesDTO in project carbon-apimgt by wso2.

the class SequenceApiServiceImpl method getSequences.

public Response getSequences(String apiName, String version, String tenantDomain, MessageContext messageContext) throws APIManagementException {
    tenantDomain = RestApiCommonUtil.getValidateTenantDomain(tenantDomain);
    List<String> deployedSequences = GatewayUtils.retrieveDeployedSequences(apiName, version, tenantDomain);
    if (debugEnabled) {
        log.debug("Retrieved Artifacts for " + apiName + " from eventhub");
    }
    SequencesDTO sequencesDTO = new SequencesDTO();
    sequencesDTO.sequences(deployedSequences);
    return Response.ok().entity(sequencesDTO).build();
}
Also used : SequencesDTO(org.wso2.carbon.apimgt.rest.api.gateway.dto.SequencesDTO)

Aggregations

SequencesDTO (org.wso2.carbon.apimgt.rest.api.gateway.dto.SequencesDTO)1