You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -369,6 +369,22 @@ resource "Orders" do
369
369
end
370
370
```
371
371
372
+
A resource can also have an explanation.
373
+
374
+
```ruby
375
+
resource "Orders"do
376
+
explanation "Orders are top-level business objects. They can be created by a POST request"
377
+
post "/orders"do
378
+
example "Creating an order"do
379
+
explanation "This method creates a new order."
380
+
do_request
381
+
# make assertions
382
+
end
383
+
end
384
+
end
385
+
```
386
+
387
+
372
388
#### header
373
389
374
390
This method takes the header name and value. The value can be a string or a symbol. If it is a symbol it will `send` the symbol, allowing you to `let` header values.
0 commit comments