java.lang.Object
org.apache.juneau.rest.server.servlet.RestMixin
org.apache.juneau.microservice.management.InfoMixin

public class InfoMixin extends RestMixin
Mixin flavor of the /info endpoint: renders the running application's manifest (build/version/git metadata) resolved from the host bean store.

Composes into a host resource via @Rest(mixins=InfoMixin.class) and delegates to a shared InfoManager worker so the mixin and resource flavors cannot drift. When no ManifestFile bean is present the endpoint degrades cleanly to an empty map.

See Also:
Since:
10.0.0
  • Constructor Details

  • Method Details

    • getInfo

      public JsonMap getInfo(RestRequest req)
      [GET /info] - Application build/version/git metadata from the manifest.
      Parameters:
      req - The HTTP request.
      Returns:
      The manifest main attributes as a sorted map (empty when no manifest is registered).