Skip to content

Release v3

Compare
Choose a tag to compare
@trizz trizz released this 11 Sep 08:19
· 287 commits to master since this release
fcee777

Breaking

  • When multiple resources are returned from the API, an instance of ApiResourceSet is returned instead of a list. This class is traversable so unless the code does specific list things or type checks, no changes are necessary.

Added

  • Add the total() method to resource sets to get the total number of resources (and not only the number of resources in the current resource set).
  • Add next_page, previous_page, first_page and last_page methods to the ApiResourceSet for easy loading of paginated resource sets.
  • Add a get_recursive method to the RequestBuilder to get the resource set including recursively the resource sets from the following pages.

Removed

  • The store method for creating POST requests. (Deprecated since 2.0.0)