PrefectHQ / prefect

Prefect is a workflow orchestration tool empowering developers to build, observe, and react to data pipelines
https://prefect.io
Apache License 2.0
15.29k stars 1.5k forks source link

Add pagination endpoint for deployments #14077

Closed pleek91 closed 1 week ago

pleek91 commented 1 week ago

Description

Adds a new "paginate" endpoint for deployments which follows the same pattern as the new flow and flow run pagination endpoints.

This new deployments/paginate endpoint returns a dictionary like

{
  "results": [...],
  "limit": 200, // returns whatever limit was passed as part of the request or what default limit was used
  "page": 1,
  "pages": 10,
  "count": 100,
}