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
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -373,6 +373,22 @@ resource "Orders" do
373
373
end
374
374
```
375
375
376
+
A resource can also have an explanation.
377
+
378
+
```ruby
379
+
resource "Orders"do
380
+
explanation "Orders are top-level business objects. They can be created by a POST request"
381
+
post "/orders"do
382
+
example "Creating an order"do
383
+
explanation "This method creates a new order."
384
+
do_request
385
+
# make assertions
386
+
end
387
+
end
388
+
end
389
+
```
390
+
391
+
376
392
#### header
377
393
378
394
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