Repository: incubator-juneau-website
Updated Branches:
  refs/heads/asf-site 127224667 -> 9cb0e1d8d


Add to about page.

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/9cb0e1d8
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/tree/9cb0e1d8
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/diff/9cb0e1d8

Branch: refs/heads/asf-site
Commit: 9cb0e1d8d8e1276d8f792b42c0ff1e83c7e6a45b
Parents: 1272246
Author: JamesBognar <[email protected]>
Authored: Tue Feb 28 17:53:58 2017 -0500
Committer: JamesBognar <[email protected]>
Committed: Tue Feb 28 17:53:58 2017 -0500

----------------------------------------------------------------------
 content/about.html | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/9cb0e1d8/content/about.html
----------------------------------------------------------------------
diff --git a/content/about.html b/content/about.html
index a308cdf..4ab1506 100644
--- a/content/about.html
+++ b/content/about.html
@@ -620,6 +620,16 @@
                Swagger documentation can be populated from annotations (as 
above), resource bundles, or Swagger JSON files.
        </p>
        <p>
+               The page shown above is implemented on the RestServletDefault 
class, which shows that it's doing nothing more than 
+               serializing a Swagger bean:
+       </p>
+       <p class='bcode'>
+       <ja>@RestMethod</ja>(name=<js>"OPTIONS"</js>, path=<js>"/*"</js>)
+       <jk>public</jk> Swagger getOptions(RestRequest req) {
+               <jk>return</jk> req.getSwagger();
+       }
+       </p>
+       <p>
                Automatic error handling is provided for a variety of 
conditions: 
        </p>
        <ul>

Reply via email to