Package com.onec.ui

Class ListDataController

java.lang.Object
com.onec.ui.ListDataController

@RestController @RequestMapping("/api/list") public class ListDataController extends Object
Serves pages of list data to the virtualized list grid (the onec-list React island). Returns the live total (for the scroll height) plus one window of rows — server-side sorted by a validated column and filtered by a case-insensitive search — so a 10k-row entity never ships whole to the client. The descriptor (columns, labels, sort, actions) comes from the DivKit list surface; this endpoint is just the data feed.
  • Constructor Details

  • Method Details

    • catalogPage

      @GetMapping("/catalogs/{name}") public Map<String,Object> catalogPage(@PathVariable String name, @RequestParam(defaultValue="0") int offset, @RequestParam(defaultValue="100") int limit, @RequestParam(required=false) String sort, @RequestParam(required=false) String dir, @RequestParam(required=false) String q, jakarta.servlet.http.HttpServletRequest request, Principal principal)
    • documentPage

      @GetMapping("/documents/{name}") public Map<String,Object> documentPage(@PathVariable String name, @RequestParam(defaultValue="0") int offset, @RequestParam(defaultValue="100") int limit, @RequestParam(required=false) String sort, @RequestParam(required=false) String dir, @RequestParam(required=false) String q, @RequestParam(required=false) String from, @RequestParam(required=false) String to, jakarta.servlet.http.HttpServletRequest request, Principal principal)