Skip to content

Refactor method to build query string to use an single array as argument

Bruno Nocera Zanette requested to merge refactor_build_qrystring_method into master

This branch changes how arguments are passed to get methods.

For instance, to get all items, with parameters: expand=metadata, limit=100, offset=0

  • old behavior: get_all_items('metadata',100,0)

  • new behavior: get_all_item(expand: ['metadata'], limit: 100, offset: 0) or simply: get_all_item(expand: ['metadata'])

It also makes possible to pass multiple expand arguments at once: get_all_item(expand: ['metadata','bitstreams'], limit: 100, offset: 0)

Merge request reports

Loading