Skip to content

Instantly share code, notes, and snippets.

@masatomo

masatomo/gist:7094380

Last active Dec 26, 2015
Embed
What would you like to do?
Autodoc.configuration.template = <<-EOF
## <%= method %> <%= path %>
<%= description %>
<%= parameters_section %>
### request
```
<%= method %> <%= path %>
```
<%= request_body_section %>
### response
```ruby
Status: <%= response_status %><%= response_headers %>
response: <%= response_body.gsub(/[0-9a-f]{24,24}/, "<BSON ID>") %>
```
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment