gerrit/Documentation/asciidoc.conf
Edwin Kempin a64c4b92d1 Add executable examples for GET requests to REST API documentation
Add examples for GET requests to the REST API documentation on which
the user can click to fire the requests. This allows users to
immediately try out the requests and play around with them.

Change-Id: If135a5e5dc53c07bc2d55a4ad82b65e251f76a8b
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
2013-01-23 21:04:46 +01:00

30 lines
541 B
Plaintext

[attributes]
asterisk=&#42;
plus=&#43;
caret=&#94;
startsb=&#91;
endsb=&#93;
tilde=&#126;
[specialsections]
GERRIT=gerrituplink
[gerrituplink]
<hr style="
height: 2px;
color: silver;
margin-top: 1.2em;
margin-bottom: 0.5em;
">
[macros]
(?u)^(?P<name>get)::(?P<target>\S*?)$=#
[get-blockmacro]
<a id="{target}" onmousedown="javascript:
var i = document.URL.lastIndexOf('/Documentation/');
var url = document.URL.substring(0, i) + '{target}';
document.getElementById('{target}').href = url;">
GET {target} HTTP/1.0
</a>