class ApplicationResource {

    @GET
    @Consumes(MediaType.APPLICATION_JSON)
    @Timed
    @UnitOfWork(transactional = false)
    @Path("{tenant}/{name}/marathon")
    @ApiOperation(value = "Get application details from marathon", response = Map.class)
    public Response getFromMarathon(@PathParam("tenant") final String tenant,
                                    @PathParam("name") final String computationName) {
        final String appName = applicationService.name(tenant, computationName);
        final Map result = applicationService.getAppFromDeploymentEnv(appName);
        return Response.ok().entity(result).build();
    }

}