@GET
    @Path("{uuid}")
    public Violation getViolationByUuid(@PathParam("uuid") UUID violationUuid) throws NotFoundException{
        logger.debug("StartOf getViolationByUuid - REQUEST for /violations/{}", violationUuid);
        ViolationHelperE violationRestHelper = getViolationHelper();
        Violation violation = violationRestHelper.getViolationByUUID(violationUuid);
        if (violation==null){
            logger.info("getViolationByUuid NotFoundException: There is no violation with id " + violationUuid + " in the SLA Repository Database");            
            throw new NotFoundException("There is no violation with id " + violationUuid + " in the SLA Repository Database");        
        }
        logger.debug("EndOf getViolationByUuid");
        return violation;
    }
@ GET @ Path ( "{uuid}" ) public Violation getViolationByUuid ( @ PathParam ( "uuid" ) UUID violationUuid ) throws NotFoundException { logger . debug ( "StartOf getViolationByUuid - REQUEST for /violations/{}" , violationUuid ) ; ViolationHelperE violationRestHelper = getViolationHelper ( ) ; Violation violation = violationRestHelper . getViolationByUUID ( violationUuid ) ; if ( violation == null ) { logger . info ( "getViolationByUuid NotFoundException: There is no violation with id " + violationUuid + " in the SLA Repository Database" ) ; throw new NotFoundException ( "There is no violation with id " + violationUuid + " in the SLA Repository Database" ) ; } logger . debug ( "EndOf getViolationByUuid" ) ; return violation ; }
Returns the information of an specific violation given an uuid If the
violation it is not in the database, it returns 404 with empty payload

<pre>
GET /violations/{violation_uuid}

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

Response:
HTTP/1.1 200 OK
Content-type: application/xml

{@code
<?xml version="1.0" encoding="UTF-8"?>
<violation>...</violation>
}

</pre>

Example:
<li>curl
http://localhost:8080/sla-service/violations/?agrementId=agreement04</li>

@return violations according to parameters in the query string.