File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ Feature: Generate Slate documentation from test examples
50
50
config.app = App
51
51
config.api_name = "Example API"
52
52
config.format = :slate
53
+ config.curl_host = 'http://localhost:3000'
53
54
config.request_headers_to_include = %w[Content-Type Host]
54
55
config.response_headers_to_include = %w[Content-Type Content-Length]
55
56
end
@@ -219,6 +220,10 @@ Feature: Generate Slate documentation from test examples
219
220
| page | Current page |
220
221
221
222
223
+
224
+ ### cURL
225
+
226
+ <code>curl "http://localhost:3000/orders" -X GET \<br> -H "Host: example.org" \<br> -H "Cookie: "</code>
222
227
"""
223
228
224
229
Scenario : Example 'Creating an order' file should look like we expect
@@ -266,6 +271,10 @@ Feature: Generate Slate documentation from test examples
266
271
267
272
268
273
274
+
275
+ ### cURL
276
+
277
+ <code>curl "http://localhost:3000/orders" -d 'name=Order+3&amount=33.0' -X POST \<br> -H "Host: example.org" \<br> -H "Content-Type: application/x-www-form-urlencoded" \<br> -H "Cookie: "</code>
269
278
"""
270
279
271
280
Scenario : Example 'Deleting an order' file should be created
You can’t perform that action at this time.
0 commit comments