a64c4b92d1
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>
30 lines
541 B
Plaintext
30 lines
541 B
Plaintext
[attributes]
|
|
asterisk=*
|
|
plus=+
|
|
caret=^
|
|
startsb=[
|
|
endsb=]
|
|
tilde=~
|
|
|
|
[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>
|