@GET @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) public Response getManifestAttributes() throws FileNotFoundException, IOException { Attributes manifestAttributes = manifestService.getManifestAttributes(); return Response.status(Response.Status.OK).entity(manifestAttributes).build(); }
@Path("/implementation-details") @GET @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) public Response getVersion() throws FileNotFoundException, IOException { ImplementationDetails implementationVersion = manifestService.getImplementationVersion(); return Response.status(Response.Status.OK).entity(implementationVersion).build(); }