@@ -7,7 +7,7 @@ Feature: Generate API Blueprint documentation from test examples
7
7
8
8
class App < Sinatra::Base
9
9
get '/orders' do
10
- content_type : json
10
+ content_type "application/vnd.api+ json"
11
11
12
12
[200, {
13
13
:page => 1,
@@ -263,11 +263,6 @@ Feature: Generate API Blueprint documentation from test examples
263
263
264
264
Host: example.org
265
265
266
- + Body
267
-
268
- Content-Type: text/html;charset=utf-8
269
- Content-Length: 57
270
-
271
266
+ Response 200 (text/html;charset=utf-8)
272
267
273
268
+ Headers
@@ -296,8 +291,16 @@ Feature: Generate API Blueprint documentation from test examples
296
291
297
292
+ Body
298
293
299
- Content-Type: application/json
300
- Content-Length: 73
294
+ {
295
+ "data": {
296
+ "type": "order",
297
+ "attributes": {
298
+ "name": "Order 1",
299
+ "amount": 100.0,
300
+ "description": "A description"
301
+ }
302
+ }
303
+ }
301
304
302
305
+ Response 201 (application/json)
303
306
@@ -324,16 +327,11 @@ Feature: Generate API Blueprint documentation from test examples
324
327
325
328
Host: example.org
326
329
327
- + Body
328
-
329
- Content-Type: application/json
330
- Content-Length: 137
331
-
332
- + Response 200 (application/json)
330
+ + Response 200 (application/vnd.api+json)
333
331
334
332
+ Headers
335
333
336
- Content-Type: application/json
334
+ Content-Type: application/vnd.api+ json
337
335
Content-Length: 137
338
336
339
337
+ Body
@@ -374,11 +372,6 @@ Feature: Generate API Blueprint documentation from test examples
374
372
Host: example.org
375
373
Content-Type: application/x-www-form-urlencoded
376
374
377
- + Body
378
-
379
- Content-Type: text/html;charset=utf-8
380
- Content-Length: 0
381
-
382
375
+ Response 200 (text/html;charset=utf-8)
383
376
384
377
+ Headers
@@ -394,11 +387,6 @@ Feature: Generate API Blueprint documentation from test examples
394
387
395
388
Host: example.org
396
389
397
- + Body
398
-
399
- Content-Type: application/json
400
- Content-Length: 73
401
-
402
390
+ Response 200 (application/json)
403
391
404
392
+ Headers
@@ -425,11 +413,6 @@ Feature: Generate API Blueprint documentation from test examples
425
413
Content-Type: application/json
426
414
Host: example.org
427
415
428
- + Body
429
-
430
- Content-Type: application/json
431
- Content-Length: 0
432
-
433
416
+ Response 400 (application/json)
434
417
435
418
+ Headers
@@ -446,8 +429,15 @@ Feature: Generate API Blueprint documentation from test examples
446
429
447
430
+ Body
448
431
449
- Content-Type: application/json
450
- Content-Length: 111
432
+ {
433
+ "data": {
434
+ "id": "1",
435
+ "type": "order",
436
+ "attributes": {
437
+ "name": "Order 1"
438
+ }
439
+ }
440
+ }
451
441
452
442
+ Response 200 (application/json)
453
443
0 commit comments