raster-foundry / granary

Open source repo for AI-supported information feeds

Home Page:https://raster-foundry.github.io/granary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paginate Endpoints

notthatbreezy opened this issue · comments

The prediction and model endpoints can get pretty large for listing because of the json schemas and target grids. These endpoints should be paginated - with a default of 5 since they are so large to start with.

Acceptance Criteria

  • Endpoints accept a limit and page parameter
  • Paginated results include a results and nextPage values - nextPage is null when there is no next page

Oops, duplicate