Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply limit and offset to GET requests #20

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

stephangroen
Copy link

There is a method for applying the limit and offset to requests. This method was never called. Therefor there was never a limit or offset sent to the API and the API always responded based on the defaults.

Example: Getting the printer list always responded with max 100 printers.

This PR calls the applyOffsetLimit method when doing GET requests, so limit and offset get applied correctly.

Also made a small fix to declare $endPointUrls the right way, since how it was done is not supported.

Tested getting a printer list and applying small limits, combined with an offset which created the right response.

@stephangroen
Copy link
Author

@PrintNodeJames @PrintNodeLtd Any change on merging this?

3 similar comments
@stephangroen
Copy link
Author

@PrintNodeJames @PrintNodeLtd Any change on merging this?

@stephangroen
Copy link
Author

@PrintNodeJames @PrintNodeLtd Any change on merging this?

@stephangroen
Copy link
Author

@PrintNodeJames @PrintNodeLtd Any change on merging this?

Copy link

@flexchar flexchar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants