Class RouteDescriptions

All Implemented Interfaces:
Serializable, Cloneable, Iterable<RouteDescription>, Collection<RouteDescription>, List<RouteDescription>, RandomAccess

A list of RouteDescription objects.

Typically returned by a route-index op so the listing is content-negotiated through the configured serializers (browsable HTML table, JSON, or XML based on the Accept header), mirroring the way ChildResourceDescriptions backs the child-resource navigation page.

See Also:
Since:
10.0.0
  • Constructor Details

  • Method Details

    • create

      public static RouteDescriptions create()
      Static creator.
      Returns:
      A new RouteDescriptions object.
    • append

      public RouteDescriptions append(String path, List<String> methods, String summary, String description, boolean deprecated)
      Adds a new RouteDescription to this list.
      Parameters:
      path - The mount path of the operation.
      methods - The HTTP methods the operation responds to.
      summary - The operation summary.
      description - The operation description.
      deprecated - Whether the operation is deprecated.
      Returns:
      This object.