-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
93 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
tmp | ||
.rvmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,12 +80,19 @@ <h4>Headers</h4> | |
X-Ua-Compatible: IE=Edge,chrome=1 | ||
E-Tag: "5fffd66f61cdd4ab8881584dbf5e72cf" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Runtime: 0.021959 | ||
X-Runtime: 0.021253 | ||
Content-Length: 58</pre> | ||
<h4>Status</h4> | ||
<pre class="response status">201 Created</pre> | ||
<h4>Body</h4> | ||
<pre class="response body highlight">{"email":"[email protected]","name":"Order 1","paid":true}</pre> | ||
<div class="response body"><div class="CodeRay"> | ||
<div class="code"><pre>{ | ||
<span style="color:#606"><span style="color:#404">"</span><span>email</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">[email protected]</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>name</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Order 1</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>paid</span><span style="color:#404">"</span></span>: <span style="color:#088">true</span> | ||
}</pre></div> | ||
</div> | ||
</div> | ||
<h3>Request</h3> | ||
<h4>Headers</h4> | ||
<pre class="request headers">Accept: application/json | ||
|
@@ -101,12 +108,19 @@ <h4>Headers</h4> | |
X-Ua-Compatible: IE=Edge,chrome=1 | ||
E-Tag: "5fffd66f61cdd4ab8881584dbf5e72cf" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Runtime: 0.007483 | ||
X-Runtime: 0.009142 | ||
Content-Length: 58</pre> | ||
<h4>Status</h4> | ||
<pre class="response status">200 OK</pre> | ||
<h4>Body</h4> | ||
<pre class="response body highlight">{"email":"[email protected]","name":"Order 1","paid":true}</pre> | ||
<div class="response body"><div class="CodeRay"> | ||
<div class="code"><pre>{ | ||
<span style="color:#606"><span style="color:#404">"</span><span>email</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">[email protected]</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>name</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Order 1</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>paid</span><span style="color:#404">"</span></span>: <span style="color:#088">true</span> | ||
}</pre></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"resource":"Orders","description":"Creating an order","explanation":null,"parameters":[{"name":"name","description":"Name of order","required":true,"scope":"order"},{"name":"paid","description":"If the order has been paid for","required":true,"scope":"order"},{"name":"email","description":"Email of user that placed the order","scope":"order"}],"requests":[{"method":"POST","route":"/orders","request_body":"order[name]=Order 1\norder[paid]=true\norder[email][email protected]","request_headers":"Accept: application/json\nHost: example.org\nContent-Type: application/x-www-form-urlencoded\nCookie: ","request_query_parameters":null,"response_status":201,"response_status_text":"Created","response_body":"{\"email\":\"[email protected]\",\"name\":\"Order 1\",\"paid\":true}","response_headers":"Content-Type: application/json; charset=utf-8\nLocation: http://example.org/orders/1\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"5fffd66f61cdd4ab8881584dbf5e72cf\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.021959\nContent-Length: 58","curl":null},{"method":"GET","route":"/orders/1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nCookie: ","request_query_parameters":null,"response_status":200,"response_status_text":"OK","response_body":"{\"email\":\"[email protected]\",\"name\":\"Order 1\",\"paid\":true}","response_headers":"Content-Type: application/json; charset=utf-8\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"5fffd66f61cdd4ab8881584dbf5e72cf\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.007483\nContent-Length: 58","curl":null}]} | ||
{"resource":"Orders","description":"Creating an order","explanation":null,"parameters":[{"name":"name","description":"Name of order","required":true,"scope":"order"},{"name":"paid","description":"If the order has been paid for","required":true,"scope":"order"},{"name":"email","description":"Email of user that placed the order","scope":"order"}],"requests":[{"method":"POST","route":"/orders","request_body":"order[name]=Order 1\norder[paid]=true\norder[email][email protected]","request_headers":"Accept: application/json\nHost: example.org\nContent-Type: application/x-www-form-urlencoded\nCookie: ","request_query_parameters":null,"response_status":201,"response_status_text":"Created","response_body":"<div class=\"CodeRay\">\n <div class=\"code\"><pre>{\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>email</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">[email protected]</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>name</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">Order 1</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>paid</span><span style=\"color:#404\">"</span></span>: <span style=\"color:#088\">true</span>\n}</pre></div>\n</div>\n","response_headers":"Content-Type: application/json; charset=utf-8\nLocation: http://example.org/orders/1\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"5fffd66f61cdd4ab8881584dbf5e72cf\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.021253\nContent-Length: 58","curl":null},{"method":"GET","route":"/orders/1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nCookie: ","request_query_parameters":null,"response_status":200,"response_status_text":"OK","response_body":"<div class=\"CodeRay\">\n <div class=\"code\"><pre>{\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>email</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">[email protected]</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>name</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">Order 1</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>paid</span><span style=\"color:#404\">"</span></span>: <span style=\"color:#088\">true</span>\n}</pre></div>\n</div>\n","response_headers":"Content-Type: application/json; charset=utf-8\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"5fffd66f61cdd4ab8881584dbf5e72cf\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.009142\nContent-Length: 58","curl":null}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"resource":"Orders","description":"Deleting an order","explanation":null,"parameters":[],"requests":[{"method":"DELETE","route":"/orders/1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nContent-Type: application/x-www-form-urlencoded\nCookie: ","request_query_parameters":null,"response_status":200,"response_status_text":"OK","response_body":"{}","response_headers":"Content-Type: application/json; charset=utf-8\nLocation: http://example.org/orders\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"99914b932bd37a50b983c5e7c90ae93b\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.010821\nContent-Length: 2","curl":null}]} | ||
{"resource":"Orders","description":"Deleting an order","explanation":null,"parameters":[],"requests":[{"method":"DELETE","route":"/orders/1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nContent-Type: application/x-www-form-urlencoded\nCookie: ","request_query_parameters":null,"response_status":200,"response_status_text":"OK","response_body":"<div class=\"CodeRay\">\n <div class=\"code\"><pre>{\n}</pre></div>\n</div>\n","response_headers":"Content-Type: application/json; charset=utf-8\nLocation: http://example.org/orders\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"99914b932bd37a50b983c5e7c90ae93b\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.007525\nContent-Length: 2","curl":null}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,12 +60,26 @@ <h4>Headers</h4> | |
X-Ua-Compatible: IE=Edge,chrome=1 | ||
E-Tag: "6cd5831e98b0090b64672b5604d9eb2a" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Runtime: 0.160810 | ||
X-Runtime: 0.130831 | ||
Content-Length: 121</pre> | ||
<h4>Status</h4> | ||
<pre class="response status">200 OK</pre> | ||
<h4>Body</h4> | ||
<pre class="response body highlight">[{"email":"[email protected]","name":"Order 0","paid":true},{"email":"[email protected]","name":"Order 1","paid":true}]</pre> | ||
<div class="response body"><div class="CodeRay"> | ||
<div class="code"><pre>[ | ||
{ | ||
<span style="color:#606"><span style="color:#404">"</span><span>email</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">[email protected]</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>name</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Order 0</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>paid</span><span style="color:#404">"</span></span>: <span style="color:#088">true</span> | ||
}, | ||
{ | ||
<span style="color:#606"><span style="color:#404">"</span><span>email</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">[email protected]</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>name</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Order 1</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>paid</span><span style="color:#404">"</span></span>: <span style="color:#088">true</span> | ||
} | ||
]</pre></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"resource":"Orders","description":"Getting a list of orders","explanation":null,"parameters":[{"name":"page","description":"Current page of orders"}],"requests":[{"method":"GET","route":"/orders?page=1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nCookie: ","request_query_parameters":"page: 1","response_status":200,"response_status_text":"OK","response_body":"[{\"email\":\"[email protected]\",\"name\":\"Order 0\",\"paid\":true},{\"email\":\"[email protected]\",\"name\":\"Order 1\",\"paid\":true}]","response_headers":"Content-Type: application/json; charset=utf-8\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"6cd5831e98b0090b64672b5604d9eb2a\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.160810\nContent-Length: 121","curl":null}]} | ||
{"resource":"Orders","description":"Getting a list of orders","explanation":null,"parameters":[{"name":"page","description":"Current page of orders"}],"requests":[{"method":"GET","route":"/orders?page=1","request_body":null,"request_headers":"Accept: application/json\nHost: example.org\nCookie: ","request_query_parameters":"page: 1","response_status":200,"response_status_text":"OK","response_body":"<div class=\"CodeRay\">\n <div class=\"code\"><pre>[\n {\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>email</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">[email protected]</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>name</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">Order 0</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>paid</span><span style=\"color:#404\">"</span></span>: <span style=\"color:#088\">true</span>\n },\n {\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>email</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">[email protected]</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>name</span><span style=\"color:#404\">"</span></span>: <span style=\"background-color:hsla(0,100%,50%,0.05)\"><span style=\"color:#710\">"</span><span style=\"color:#D20\">Order 1</span><span style=\"color:#710\">"</span></span>,\n <span style=\"color:#606\"><span style=\"color:#404\">"</span><span>paid</span><span style=\"color:#404\">"</span></span>: <span style=\"color:#088\">true</span>\n }\n]</pre></div>\n</div>\n","response_headers":"Content-Type: application/json; charset=utf-8\nX-Ua-Compatible: IE=Edge,chrome=1\nE-Tag: \"6cd5831e98b0090b64672b5604d9eb2a\"\nCache-Control: max-age=0, private, must-revalidate\nX-Runtime: 0.130831\nContent-Length: 121","curl":null}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,19 @@ <h4>Headers</h4> | |
X-Ua-Compatible: IE=Edge,chrome=1 | ||
E-Tag: "d9eaba14696a65b9dfc66bf203d25a13" | ||
Cache-Control: max-age=0, private, must-revalidate | ||
X-Runtime: 0.004526 | ||
X-Runtime: 0.004599 | ||
Content-Length: 59</pre> | ||
<h4>Status</h4> | ||
<pre class="response status">200 OK</pre> | ||
<h4>Body</h4> | ||
<pre class="response body highlight">{"email":"[email protected]","name":"Old Name","paid":true}</pre> | ||
<div class="response body"><div class="CodeRay"> | ||
<div class="code"><pre>{ | ||
<span style="color:#606"><span style="color:#404">"</span><span>email</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">[email protected]</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>name</span><span style="color:#404">"</span></span>: <span style="background-color:hsla(0,100%,50%,0.05)"><span style="color:#710">"</span><span style="color:#D20">Old Name</span><span style="color:#710">"</span></span>, | ||
<span style="color:#606"><span style="color:#404">"</span><span>paid</span><span style="color:#404">"</span></span>: <span style="color:#088">true</span> | ||
}</pre></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
|
Oops, something went wrong.