[xwiki-users] Rest - get objects
Hello I'm wondering, am I doing something wrong here? When I call http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/objects?media=js... I get an error: Error 500 - Malformed URL: the spaces section is invalid. But, http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/attachments?medi... works fine. Is there something additional I need to do to work retrieve objects? Thanks -- Anton Hughes
Object are always located in a document and you are trying to access them in a ("Brokers") space. You just need to ad the pages part of the URL. See http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectres... On Sat, Nov 7, 2015 at 2:44 AM, Anton Hughes <ah@tradeworks.io> wrote:
Hello
I'm wondering, am I doing something wrong here? When I call http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/objects?media=js... I get an error: Error 500 - Malformed URL: the spaces section is invalid.
But, http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/attachments?medi... works fine.
Is there something additional I need to do to work retrieve objects?
Thanks
-- Anton Hughes _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On 7 November 2015 at 16:24, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
Object are always located in a document and you are trying to access them in a ("Brokers") space. You just need to ad the pages part of the URL.
HI Thomas I should have mentioned that I also tried accessing them from the page, eg, http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/ABC+Broker/objec... but I get exactly the same response - Malformed URL: the spaces section is invalid. What do you suggest? -- Anton Hughes
Ah - my bad! This is working - http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/pages/ABC+Broker... I had forgotten the pages section of the url. Thanks On 7 November 2015 at 16:46, Anton Hughes <ah@tradeworks.io> wrote:
On 7 November 2015 at 16:24, Thomas Mortagne <thomas.mortagne@xwiki.com> wrote:
Object are always located in a document and you are trying to access them in a ("Brokers") space. You just need to ad the pages part of the URL.
HI Thomas
I should have mentioned that I also tried accessing them from the page, eg, http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Brokers/ABC+Broker/objec... but I get exactly the same response -
Malformed URL: the spaces section is invalid.
What do you suggest?
-- Anton Hughes
-- Anton Hughes
participants (2)
-
Anton Hughes -
Thomas Mortagne