Skip to content

Commit

Permalink
Merge pull request #210 from adityashedge/master
Browse files Browse the repository at this point in the history
added 'route' url and http 'method' for all JsonIndex examples
  • Loading branch information
oestrich committed Jun 3, 2015
2 parents 3c2f23d + c2f653b commit b9ba8c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rspec_api_documentation/writers/json_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def section_hash(section)
{
:description => example.description,
:link => "#{example.dirname}/#{example.filename}",
:groups => example.metadata[:document]
:groups => example.metadata[:document],
:route => example.route,
:method => example.metadata[:method]
}
}
}
Expand Down

0 comments on commit b9ba8c7

Please sign in to comment.