-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add total result count to package list API
Refs #988 This commit connects the API "GET /package" endpoint to the persistence layer `ListPackages()` method. The cursor request parameter is replaced by the optional limit and offset parameters. The response now returns the current page limit and offset, and the total number of results found before paging, instead of a cursor value. These changes will break the existing cursor-based pagination in the Enduro Dashboard. I will fix the Dashboard paging in a subsequent commit. - Add optional `limit` and `offset` parameters to the GET /package request - Add page `limit`, `offset`, and `total` fields to GET /package response - Use `persistence.ListPackages()` to populate API results - Add an adapter to convert goa `package_.ListPayload` search filters to `persistence.Filter` filters - Add tests for the conversion of the package API parameters to persistence layer parameters, and the persistence search results to API response results
- Loading branch information
Showing
26 changed files
with
1,119 additions
and
288 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.