/** * Generic Search api: Currently for just pages - Get the experiment list for the chosen page for an application * * @param applicationName the application name * @param pageName the page name * @return Response object containing metadata of all experiments having the page for the application. */ @GET @Path("/applications/{applicationName}/pages/{pageName}") @ApiOperation(value = "Return all experiments for page for app", response = ExperimentList.class) @Timed public Response getPageExperiments( @PathParam("applicationName") @ApiParam(value = "Application Name") final Application.Name applicationName, @PathParam("pageName") @ApiParam(value = "Page name where the experiment will appear") final Page.Name pageName) { try { return httpHeader.headers().entity(pages.getPageExperiments(applicationName, pageName)).build(); } catch (Exception exception) { LOGGER.error("getPageExperiments failed for applicationName={}, pageName={} with error:", applicationName, pageName, exception); throw exception; } }