Skip to content

API Generalize Header for get XY list endpoints #11114

Closed
@6543

Description

@6543

as title, if an api endpoint returns a list of objects it should:
A: support paggination (optional)
B: add max-obj-count to header

  • add this to API programming guidelinge

  • create header for all get list endpints

  • ctx.Header().Set("X-Total-Count", fmt.Sprintf("%d", maxResults))

Metadata

Metadata

Assignees

Labels

modifies/apiThis PR adds API routes or modifies themtype/proposalThe new feature has not been accepted yet but needs to be discussed first.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions