Skip to content

Improve rest support, add total items to list results#640

Merged
briancline merged 3 commits into
softlayer:masterfrom
sudorandom:rest-support
Nov 20, 2015
Merged

Improve rest support, add total items to list results#640
briancline merged 3 commits into
softlayer:masterfrom
sudorandom:rest-support

Conversation

@sudorandom
Copy link
Copy Markdown
Contributor

  • Resolves Total Items #638 - Lists now return from the client as SoftLayerListResult objects, which should behave like lists except for the fact that there is now a total_count attribute available which can tell you how many total items exist which satisfy your list query.
  • Resolves Resurrect masks/params/filters for REST transport #639 - Adds masks, filters, limit, offset, and complex parameters to the REST transport
  • Fixes minor documentation issues
  • Fixes issue when using the latest version of tox

@landscape-bot
Copy link
Copy Markdown

Code Health
Code quality remained the same when pulling d28346f on sudorandom:rest-support into 0eed20f on softlayer:master.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

FYI, converting to a list is required for this code because it uses the result of a list API call in a subsequent API call. Unfortunately, the XMLRPC library uses the exact type instead of using instanceof so it will error now because it does not know about SoftLayerListResult. This could be considered a breaking change... However, this is the only instance that I've found in all of the manager code.

@briancline
Copy link
Copy Markdown
Member

LGTM, thanks for adding this.

briancline added a commit that referenced this pull request Nov 20, 2015
Improve rest support, add total items to list results
@briancline briancline merged commit 3e65e68 into softlayer:master Nov 20, 2015
@sudorandom sudorandom deleted the rest-support branch November 20, 2015 20:49
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.

3 participants