@GET
    @Produces(MediaType.APPLICATION_XML)
    public Response getProviders() {
        logger.debug("StartOf getProviders - REQUEST for /providers");

        ProviderHelper providerRestService =  getProviderHelper();
        String serializedProviders = null;
        try {
            serializedProviders = providerRestService.getProviders();
        } catch (HelperException e) {
            logger.info("getTemplates exception:"+e.getMessage());
            return buildResponse(e);
        }
        logger.debug("EndOf getTemplates");
        return buildResponse(200, serializedProviders);
        
    }
@ GET @ Produces ( MediaType . APPLICATION_XML ) public Response getProviders ( ) { logger . debug ( "StartOf getProviders - REQUEST for /providers" ) ; ProviderHelper providerRestService = getProviderHelper ( ) ; String serializedProviders = null ; try { serializedProviders = providerRestService . getProviders ( ) ; } catch ( HelperException e ) { logger . info ( "getTemplates exception:" + e . getMessage ( ) ) ; return buildResponse ( e ) ; } logger . debug ( "EndOf getTemplates" ) ; return buildResponse ( 200 , serializedProviders ) ; }
Get the list of available providers

<pre>
GET /providers

Request:
GET /providers HTTP/1.1
Accept: application/xml

Response:

{@code
<?xml version="1.0" encoding="UTF-8"?>
<collection href="/providers">
<items offset="0" total="1">

<provider>
<uuid>fc923960-03fe-41eb-8a21-a56709f9370f</uuid>
<name>provider-prueba</name>
</provider>
</items>
</collection>
}

</pre>

Example: <li>curl http://localhost:8080/sla-service/providers</li>

@return XML information with the different details of the providers

@throws JAXBException