diff --git a/lib/rspec_api_documentation/writers/json_writer.rb b/lib/rspec_api_documentation/writers/json_writer.rb index 6c956083..730426ea 100644 --- a/lib/rspec_api_documentation/writers/json_writer.rb +++ b/lib/rspec_api_documentation/writers/json_writer.rb @@ -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] } } }