@Test public void testGetMountPoint() throws Exception { given().expect() .body(equalTo("/oaipmh")) .when().get(env.host("/mountpoint")); }
@GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) public Response getMountPoint() { return ok(getOaiPmhServerInfo().getMountPoint()); }
AbstractOaiPmhServerInfoRestEndpoint { @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) public Response getMountPoint() { return ok(getOaiPmhServerInfo().getMountPoint()); } }
AbstractOaiPmhServerInfoRestEndpoint { @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) public Response getMountPoint() { return ok(getOaiPmhServerInfo().getMountPoint()); }  }
AbstractOaiPmhServerInfoRestEndpoint { @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) public Response getMountPoint() { return ok(getOaiPmhServerInfo().getMountPoint()); }  abstract OaiPmhServerInfo getOaiPmhServerInfo(); @GET @Path("/hasrepo/{repoId}") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "hasRepo", description = "Ask if the OAI-PMH server knows about a repository", returnDescription = "true|false", pathParameters = { @RestParameter(name = "repoId", isRequired = true, description = "The id of the repository", type = RestParameter.Type.STRING)}, responses = { @RestResponse(responseCode = SC_OK, description = "true|false")}) Response hasRepo(@PathParam("repoId") String repoId); @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) Response getMountPoint(); }
AbstractOaiPmhServerInfoRestEndpoint { @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) public Response getMountPoint() { return ok(getOaiPmhServerInfo().getMountPoint()); }  abstract OaiPmhServerInfo getOaiPmhServerInfo(); @GET @Path("/hasrepo/{repoId}") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "hasRepo", description = "Ask if the OAI-PMH server knows about a repository", returnDescription = "true|false", pathParameters = { @RestParameter(name = "repoId", isRequired = true, description = "The id of the repository", type = RestParameter.Type.STRING)}, responses = { @RestResponse(responseCode = SC_OK, description = "true|false")}) Response hasRepo(@PathParam("repoId") String repoId); @GET @Path("/mountpoint") @Produces(MediaType.TEXT_PLAIN) @RestQuery(name = "mountPoint", description = "Ask for the mount point of the OAI-PMH server", returnDescription = "The mount point", responses = { @RestResponse(responseCode = SC_OK, description = "The mount point")}) Response getMountPoint();  }