From version 75.10
edited by Adel Atallah
on 2018/09/19
To version 76.1
edited by Thomas Mortagne
on 2019/01/09
Change comment: Fix bad example

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.atallahade
1 +XWiki.ThomasMortagne
Content
... ... @@ -1015,11 +1015,11 @@
1015 1015  import org.xwiki.component.annotation.Component;
1016 1016  import org.xwiki.rest.XWikiResource;
1017 1017  
1018 [email protected]("org.xwiki.contrib.rest.HelloWordResource")
1018 [email protected]("org.xwiki.contrib.rest.HelloWorldResource")
1019 1019  @Path("/myresources/{myresourcename}")
1020 -class HelloWorldResource extends XWikiResource {
1020 +public class HelloWorldResource extends XWikiResource {
1021 1021   @GET
1022 - public String get(@PathParam("myresourcename") @DefaultValue("world") String myresourcename)
1022 + public String get(@PathParam("myresourcename") @DefaultValue("world") String myresourcename)
1023 1023   {
1024 1024   return "Hello " + myresourcename;
1025 1025   }
XWiki.XWikiComments[0]
Comment
XWiki.XWikiComments[1]
Comment
XWiki.XWikiComments[2]
Comment
XWiki.XWikiComments[4]
Comment
XWiki.XWikiComments[5]
Comment
XWiki.XWikiComments[7]
Comment

Get Connected