Univention Bugzilla – Bug 50182
[UDM HTTP API] searching/listing without parameters leads to empty result
Last modified: 2019-09-22 15:51:13 CEST
$ curl -s -k -X GET -H "Accept:application/json" -u Administrator:univention 'https://m66.uni.dtr/univention/udm/shares/share/?hidden=false' | python -m json.tool $ curl -s -k -X GET -H "Accept:application/json" -u Administrator:univention 'https://m66.uni.dtr/univention/udm/shares/share/' | python -m json.tool → no objects found
To fix this I would need to change /univention/udm/users/user to /univention/udm/users/user/search. One needs the page which doesn't do a search for meta-information (e.g. it contains the "search" relation link).
IMO It's okay as it currently is. At minimum one query parameter must be used. The "search" relation link contains them in the URI template.