You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
The two functions accept the pagination data but do not provide them to the URL.
They should be provided as query strings i.e.:
/db/repo?page=1&size=25&desc=true
In the Go library the desc=true is added only when the user wants to sort descending order.
It might be better to accept a defined type (I guess class in Python?), for example there's a new sortby field that's in the work and it will be easier to change for further version vs. function parameters. For example
The two functions accept the pagination data but do not provide them to the URL.
They should be provided as query strings i.e.:
/db/repo?page=1&size=25&desc=true
In the
Go
library thedesc=true
is added only when the user wants to sort descending order.It might be better to accept a defined type (I guess class in Python?), for example there's a new
sortby
field that's in the work and it will be easier to change for further version vs. function parameters. For exampleThis will prevent breaking caller code and give flexibility to allow for additional meta data.
The text was updated successfully, but these errors were encountered: