<
From version < 42.1 >
edited by Thomas Mortagne
on 2014/11/21
To version < 43.1 >
edited by Guillaume Delhumeau
on 2015/07/09
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.gdelhumeau
Content
... ... @@ -939,6 +939,21 @@
939 939  
940 940  The xwiki-platform-rest-api module can be also seen as an authoritative reference for the REST API.
941 941  
942 += Generate a REST URL for a resource =
943 +
944 +If you need to generate a REST URL for a resource inside a script, you can use the REST script services:
945 +
946 +{{code language="velocity"}}
947 +$services.rest.url($entityReference)
948 +{{/code}}
949 +
950 +Where ##$entityReference## could be:
951 +
952 +* a ##DocumentReference##
953 +* a ##SpaceReference##
954 +
955 +We plan to add more supported entities in the future (ObjectReference, ClassReference, etc...).
956 +
942 942  = Using the RESTful API =
943 943  
944 944  == Highlevel description and tutorial for a basic usage of the RESTful API ==

Get Connected