@GET
    @Path("{uuid}")
    public Provider getProviderByUuid(@PathParam("uuid") String providerUUID) throws NotFoundException{
        logger.debug("StartOf getProviderByUuid - REQUEST for /providers/{}", providerUUID);

        ProviderHelperE providerRestHelper = getProviderHelper();
        Provider provider = providerRestHelper.getProviderByUUID(providerUUID);
        if (provider==null){
            logger.info("There is no provider with uuid " + providerUUID + " in the SLA Repository Database");
            throw new NotFoundException("There is no provider with uuid " + providerUUID + " in the SLA Repository Database");        
        }
        return provider;
    }
@ GET @ Path ( "{uuid}" ) public Provider getProviderByUuid ( @ PathParam ( "uuid" ) String providerUUID ) throws NotFoundException { logger . debug ( "StartOf getProviderByUuid - REQUEST for /providers/{}" , providerUUID ) ; ProviderHelperE providerRestHelper = getProviderHelper ( ) ; Provider provider = providerRestHelper . getProviderByUUID ( providerUUID ) ; if ( provider == null ) { logger . info ( "There is no provider with uuid " + providerUUID + " in the SLA Repository Database" ) ; throw new NotFoundException ( "There is no provider with uuid " + providerUUID + " in the SLA Repository Database" ) ; } return provider ; }
Gets the information of an specific provider If the provider it is not in
the database, it returns 404 with empty payload

<pre>
GET /providers/{uuid}

Request:
GET /providers HTTP/1.1

Response:
Type will depend on the Accept header from the call

With Accept: application/xml
{@code
<?xml version="1.0" encoding="UTF-8"?>
<provider>
<uuid>fc923960-03fe-41eb-8a21-a56709f9370f</uuid>
<name>provider-prueba</name>
</provider>
}

With Accept: application/json
{"uuid":"fc923960-03fe-41eb-8a21-a56709f9370f","name":"provider-prueba"}
</pre>

Example: <li>curl -H "Accept: application/json"
http://localhost:8080/sla-service/providers/fc923960-03f
e-41eb-8a21-a56709f9370f</li>

@param uuid of the provider

@return XML or JSON information with the different details of the provider
@throws NotFoundException when no provider with uuid exists in the database