Sha256: b1800eedf0f7a10917f7f0f61f0b030fc5e1d0f7578009fd225214e5acf591e3

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

<h1>Rest Api Documentation (grape-doc)</h1>
<h2><span class="caps">GET</span>: /hello(.:format)</h2>
<h3>Request</h3>
<h4>description</h4>
<ul>
	<li>Hello world!</li>
</ul>
<h4>params</h4>
<ul>
	<li>test
	<ul>
		<li>required: false</li>
		<li>type: String</li>
		<li>desc: it&#8217;s a test string</li>
	</ul></li>
</ul>
<h3>Response</h3>
<h4>example</h4>
<h5>curl sample with /hello</h5>
<pre>$ curl -X GET "http://example.org/hello?test=hy" -H "Accept-Version: v1" -H "X-Token: blabla"</pre>
<ul>
	<li>status code: 200</li>
	<li>format type: json</li>
</ul>
<h6>raw body</h6>
<pre>{"hello":"world!"}</pre>
<h6>json formatted body with Class types</h6>
<pre>{
  "hello": "String"
}</pre>
<h5>curl sample with /hello.json</h5>
<pre>$ curl -X GET "http://example.org/hello.json?" -H "Accept-Version: v1" -H "X-Token: blabla"</pre>
<ul>
	<li>status code: 200</li>
	<li>format type: json</li>
</ul>
<h6>raw body</h6>
<pre>{"hello":"world!"}</pre>
<h6>json formatted body with Class types</h6>
<pre>{
  "hello": "String"
}</pre>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-doc-0.3.4 test/sample.html
grape-doc-0.3.3 test/sample.html