class ApplicationResource {

    @PUT
    @Consumes(MediaType.APPLICATION_JSON)
    @Timed
    @UnitOfWork
    @UserRequired
    @Path("{tenant}/{name}/restart")
    @ApiOperation(value = "Restart application on marathon")
    public Response restart(@PathParam("tenant") final String tenant, @PathParam("name") final String computationName,
                            @QueryParam("forcefully") @DefaultValue("false") final boolean forcefully) {
        final String appName = applicationService.name(tenant, computationName);
        applicationService.restart(appName, tenant, forcefully);
        return Response.noContent().build();
    }

}