Skip to content

Commit

Permalink
Use page & page_size params for pagination. (ansible#3021)
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner authored Dec 14, 2022
1 parent aff9315 commit 4afaca7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ export class LegacyAPI extends BaseAPI {
super(API_HOST + API_BASE_PATH);
}

public mapPageToOffset(p) {
// override BaseAPI's function to persist page, page_size, etc ...
return p;
}

get(apiPath: string) {
const fullPath = 'v1/' + apiPath;
if (fullPath.includes('?')) {
Expand Down

0 comments on commit 4afaca7

Please sign in to comment.