class MergeRequestRest {

    @PUT
    @Path("{requestId}")
    @Consumes(MediaType.APPLICATION_JSON)
    @RolesAllowed("user")
    @ApiOperation("Updates a MergeRequest by its ID using the provided JSON-LD")
    public Response updateMergeRequest(@PathParam("requestId") String requestId, String newMergeRequest) {
        Resource requestIdResource = createIRI(requestId, vf);
        try {
            manager.updateMergeRequest(requestIdResource, jsonToMergeRequest(requestIdResource, newMergeRequest));
            return Response.ok().build();
        } catch (IllegalStateException | MobiException ex) {
            throw ErrorUtils.sendError(ex, ex.getMessage(), Response.Status.INTERNAL_SERVER_ERROR);
        }
    }

}