[ckan-changes] [okfn/ckan] f824f4: [#546] Allow GET API actions to not have parameter...

GitHub noreply at github.com
Mon Mar 4 11:36:44 UTC 2013


  Branch: refs/heads/546-get-actions-no-params
  Home:   https://github.com/okfn/ckan
  Commit: f824f4e11d6425c5707722400f4dff4c1cbd5429
      https://github.com/okfn/ckan/commit/f824f4e11d6425c5707722400f4dff4c1cbd5429
  Author: amercader <amercadero at gmail.com>
  Date:   2013-03-04 (Mon, 04 Mar 2013)

  Changed paths:
    M ckan/controllers/api.py
    M ckan/tests/logic/test_action.py

  Log Message:
  -----------
  [#546] Allow GET API actions to not have parameters

For actions like package_list or group_list you still had to provide
parameters as in:

http://demo.ckan.org/api/3/action/package_list?foo

These changes allow to not pass any param so an empty dict is passed to
the logic layer, where if a necessary param is missing a ValidationError
will be raised.

Also adds some missing tests for GETable actions.





More information about the ckan-changes mailing list