@@ -115,6 +115,11 @@ Feature: Generate API Blueprint documentation from test examples
115
115
attribute :name, 'The order name', required: true, :example => 'a name'
116
116
attribute :amount, required: false
117
117
attribute :description, 'The order description', type: 'string', required: false, example: "a description"
118
+ attribute :category, 'The order category', type: 'string', required: false, default: 'normal', enum: %w[normal priority]
119
+ attribute :metadata, 'The order metadata', type: 'json', required: false, annotation: <<-MARKDOWN
120
+ + instructions (optional, string)
121
+ + notes (optional, string)
122
+ MARKDOWN
118
123
119
124
get 'Returns a single order' do
120
125
explanation "This is used to return orders."
@@ -360,6 +365,14 @@ Feature: Generate API Blueprint documentation from test examples
360
365
+ name: a name (required) - The order name
361
366
+ amount (optional)
362
367
+ description: a description (optional, string) - The order description
368
+ + category (optional, string) - The order category
369
+ + Default: `normal`
370
+ + Members
371
+ + `normal`
372
+ + `priority`
373
+ + metadata (optional, json) - The order metadata
374
+ + instructions (optional, string)
375
+ + notes (optional, string)
363
376
364
377
### Deletes a specific order [DELETE]
365
378
0 commit comments