Closed shipperizer closed 1 month ago
at the moment the /api/v0/rules API follows the page|size pagination strategy
/api/v0/rules
page|size
this goes against what is being used in
api/v0/identities
api/v0/clients
api/v0/schemas
plan is to standardzie around a page_token strategy like the APIs above, using a base64 json representation of an offset:
page_token
{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "offset": { "type": "string" } }, "required": [ "offset" ] }
shipperizer in ~/shipperizer/identity-platform-admin-ui/pkg/rules on IAM-782 ● λ echo -n '{"offset":"250"}' | base64 | base64 -d {"offset":"250"}% shipperizer in ~/shipperizer/identity-platform-admin-ui/pkg/rules on IAM-782 ● λ echo -n '{"offset":"250"}' | base64 eyJvZmZzZXQiOiIyNTAifQ==
this is the same token schema used by the /api/v0/schemas
/api/v0/schemas
once we get the offset and the page size, we should be more than able to interpolate the page
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-829.
This message was autogenerated
at the moment the
/api/v0/rules
API follows thepage|size
pagination strategythis goes against what is being used in
api/v0/identities
api/v0/clients
api/v0/schemas
plan is to standardzie around a
page_token
strategy like the APIs above, using a base64 json representation of an offset:this is the same token schema used by the
/api/v0/schemas
once we get the offset and the page size, we should be more than able to interpolate the page