code: @GET
      @Path("/version")
      @Produces(MediaType.APPLICATION_JSON)
      public Response manifestDetails(@Context HttpServletRequest request) {
  
          final ServletContext context = request.getSession().getServletContext();
  
          try (final InputStream manifestStream = context.getResourceAsStream("/META-INF/MANIFEST.MF")) {
              return Response.ok(new Manifest(manifestStream).getMainAttributes()).build();
          } catch (Exception e) {
              return Response.status(Response.Status.NOT_FOUND).entity("Could not find version information").build();
          }
      }
docs: Endpoint to verify scm and version details
  
  @return {@link Attributes}
  @statuscode 200 Successful response for your request with manifest's attributes
  @statuscode 404 Not found version information