-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* indexer: rename GetListAccounts -> AccountsList * indexer: AccountsList now returns a TotalCount * indexer: ProcessList now returns a TotalCount * indexer: EntityList now returns a TotalCount * test: add TestAPIAccountsList and TestAPIElectionsList * api: unify hardcoded structs into a new types: * AccountsList * ElectionsList * OrganizationsList * CountResult * api: add `total` field to endpoints: * GET /elections * GET /accounts * GET /chain/organizations * api: refactor filtered endpoints to unify pagination logic, and add `total` field: * GET /accounts/{organizationID}/elections/status/{status}/page/{page} * GET /accounts/{organizationID}/elections/page/{page} * GET /elections/page/{page} * POST /elections/filter/page/{page} * GET /chain/organizations/page/{page} * POST /chain/organizations/filter/page/{page} * GET /accounts/page/{page} also, marked all of these endpoints as deprecated on swagger docs * deduplicate several code snippets, like params parsing and json.Marshal * rename api.MaxPageSize -> api.ItemsPerPage * fixed lots of swagger docs
- Loading branch information
Showing
22 changed files
with
866 additions
and
589 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.