Skip to content

Commit b9ba8c7

Browse files
committed
Merge pull request #210 from adityashedge/master
added 'route' url and http 'method' for all JsonIndex examples
2 parents 3c2f23d + c2f653b commit b9ba8c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rspec_api_documentation/writers/json_writer.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def section_hash(section)
5151
{
5252
:description => example.description,
5353
:link => "#{example.dirname}/#{example.filename}",
54-
:groups => example.metadata[:document]
54+
:groups => example.metadata[:document],
55+
:route => example.route,
56+
:method => example.metadata[:method]
5557
}
5658
}
5759
}

0 commit comments

Comments
 (0)