Skip to content

Instantly share code, notes, and snippets.

@masatomo
Last active December 26, 2015 04:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masatomo/7094380 to your computer and use it in GitHub Desktop.
Save masatomo/7094380 to your computer and use it in GitHub Desktop.
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