The order of the REST request parameters is working fine if q is the first request parameter. Wrong Format: /v1/search?collection=Cars&options=test-transform<http://172.17.103.44:9000/v1/search?collection=Lessonplan&options=search-lessonplan-transform-json&view=facets&format=json&q=Auth%3aorgId%3dPERF0006%3bplatform%3dTCK>&q=test Correct Format: /v1/search?q=test&options=test-transform&collection=Cars<http://172.17.103.44:9000/v1/search?options=search-lessonplan-transform-json&collection=Lessonplan&format=json&q=Auth%3aorgId%3dPERF0006%3bplatform%3dTCK>
Is q supposed to be the first parameter of the REST request? Thanks, Rahul K From: Kataram, Rahul (Cognizant) Sent: Thursday, September 03, 2015 1:12 PM To: [email protected] Subject: Issue with order of request parameters Hi, There is an issue with the order of the request parameters passed in the URL of ML 6 REST Server. We have identified that the request parameter "collection" should be passed only after the "options" parameter. If not passed, the collection is being passed as empty and we get 'XDMP-URI: cts:collection-query("") -- Invalid URI format: ""' error Wrong Format: /v1/search?collection=Cars&options=test-transform<http://172.17.103.44:9000/v1/search?collection=Lessonplan&options=search-lessonplan-transform-json&view=facets&format=json&q=Auth%3aorgId%3dPERF0006%3bplatform%3dTCK> Correct Format: /v1/search?options=test-transform&collection=Cars<http://172.17.103.44:9000/v1/search?options=search-lessonplan-transform-json&collection=Lessonplan&format=json&q=Auth%3aorgId%3dPERF0006%3bplatform%3dTCK> Can anyone confirm, is this supposed to be the order in which they are supposed to be passed? Thanks, Rahul K This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
