Repository: incubator-juneau-website Updated Branches: refs/heads/asf-site f1f17bc33 -> c87baf59b
Add example to 6.2.1 Project: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/commit/c87baf59 Tree: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/tree/c87baf59 Diff: http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/diff/c87baf59 Branch: refs/heads/asf-site Commit: c87baf59b11796e472d8edaea08507e4d176a4a8 Parents: f1f17bc Author: JamesBognar <[email protected]> Authored: Mon May 8 11:50:44 2017 -0400 Committer: JamesBognar <[email protected]> Committed: Mon May 8 11:50:44 2017 -0400 ---------------------------------------------------------------------- content/site/apidocs/overview-summary.html | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/c87baf59/content/site/apidocs/overview-summary.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/overview-summary.html b/content/site/apidocs/overview-summary.html index 7378122..1f5dadb 100644 --- a/content/site/apidocs/overview-summary.html +++ b/content/site/apidocs/overview-summary.html @@ -6392,6 +6392,32 @@ <li><a href="org/apache/juneau/dto/swagger/Swagger.html" title="class in org.apache.juneau.dto.swagger"><code>Swagger</code></a> - The auto-generated Swagger doc. <li><a href="org/apache/juneau/ini/ConfigFile.html" title="class in org.apache.juneau.ini"><code>ConfigFile</code></a> - The external config file for the resource. </ul> + So, for example + <p class='bcode'> + <jd>/** Old way */</jd> + <ja>@RestMethod</ja>(name=<js>"*"</js>, path=<js>"/example1/{a1}/{a2}/{a3}/*"</js>) + <jk>public</jk> String example1( + <ja>@Method</ja> String method, + <ja>@Path</ja> String a1, + <ja>@Path</ja> <jk>int</jk> a2, + <ja>@Path</ja> UUID a3, + <ja>@Query</ja>(<js>"p1"</js>) <jk>int</jk> p1, + <ja>@Query</ja>(<js>"p2"</js>) String p2, + <ja>@Query</ja>(<js>"p3"</js>) UUID p3, + <ja>@Header</ja>(<js>"Accept-Language"</js>) String lang, + <ja>@Header</ja>(<js>"Accept"</js>) String accept + ) + + <jd>/** New way */</jd> + <ja>@RestMethod</ja>(name=<js>"*"</js>, path=<js>"/example2/{a1}/{a2}/{a3}/*"</js>) + <jk>public</jk> String example2( + HttpMethod httpMethod, + RequestPathParams pathParams, + RequestQuery query, + AcceptLangage acceptLanguage, + Accept accept + ) + </p> <li>A new annotation <a href="org/apache/juneau/rest/annotation/RestResource.html#paramResolvers--"><code>@RestResource.paramResolvers()</code></a> that allows you to define your own custom Java method parameter resolvers. </ul>
