API Generalize Header for get XY list endpoints #11114
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Milestone
Uh oh!
There was an error while loading. Please reload this page.
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))
The text was updated successfully, but these errors were encountered: