-
Task
-
Resolution: Done
-
Undefined
-
None
-
None
-
EnVision Sprint 35, EnVision Sprint 36
Goal:
- Add metadata information to sources and pubkeys endpoint response:
- Limit
- Offset
- Total count
- Links
- examples: https://github.com/RedHatInsights/sources-api-go/blob/319a22e189750d878d5554e5a746c8ada6b4fe23/util/collection_response.go#L27C14-L27C14
- https://github.com/osbuild/image-builder/blob/cbf859e57b97bef8c795d01cf2c7ecb5947ee9d4/internal/v1/handler.go#L453C13-L453C13
Acceptance Criteria:
- When making a request to an endpoint that supports offset and limit parameters, the response includes a meta payload containing the requested information. For instance:
"meta": { "count": 6, "limit": 100, "offset": 0 }, "links": { "first": "/api/sources/v3.1/sources?limit=100&offset=0", "last": "/api/sources/v3.1/sources?limit=100&offset=100" }