Class ChartsRest

java.lang.Object
jakarta.servlet.GenericServlet
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable, BasicUniversalConfig, DefaultConfig, DefaultHtmlConfig

public class ChartsRest extends PetstoreConsolePage
Charts: the chart-core demo page, built with DevPageBuilders.charts() only (it has no template twin).
Example:

GET /console/dev/charts GET /console/dev/charts/daily

See Also:
  • Constructor Details

  • Method Details

    • page

      public View page(RestRequest req)
      Renders the Charts page.
      Parameters:
      req - The request.
      Returns:
      The page.
    • daily

      public List<Map<String,Object>> daily()
      The week's order counts the chart and the table draw.
      Returns:
      One row per day.