[ckan-changes] [okfn/ckan] f824f4: [#546] Allow GET API actions to not have parameter...
GitHub
noreply at github.com
Wed Mar 6 10:15:14 UTC 2013
Branch: refs/heads/master
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.
Commit: c19b6aeff6b18942a252e7087db52f282d07589b
https://github.com/okfn/ckan/commit/c19b6aeff6b18942a252e7087db52f282d07589b
Author: Dominik Moritz <domoritz at gmail.com>
Date: 2013-03-06 (Wed, 06 Mar 2013)
Changed paths:
M ckan/controllers/api.py
M ckan/tests/logic/test_action.py
Log Message:
-----------
Merge pull request #546 from okfn/546-get-actions-no-params
GETable actions always need a URL parameter even if not required
Compare: https://github.com/okfn/ckan/compare/34f1e4ab387b...c19b6aeff6b1
More information about the ckan-changes
mailing list