hashicorp / nomad-openapi

OpenAPI specification and related artifacts for HashiCorp Nomad
Mozilla Public License 2.0
59 stars 15 forks source link

[rust] No pagination support on paginated requests #130

Open ojacobson opened 1 year ago

ojacobson commented 1 year ago

Functions such as nomad_client::apis::jobs_api::get_job_allocations, which access APIs that use X-Nomad-Nexttoken headers to express pagination, do not actually expose that header to the caller, preventing them from retrieving anything beyond the first page of results.

ojacobson commented 1 year ago

Actually, it seems like all header-based information is omitted in the return values. You can't get the X-Nomad-Index header anywhere, either, unless it's also included in the body somewhere.