swagger-docs icon indicating copy to clipboard operation
swagger-docs copied to clipboard

DRY Documentation and Nested Routes

Open josh1703658784 opened this issue 8 years ago • 0 comments

I have some routes for show like so:

  1. /foo/{foo_id}/bar/{id}.json
  2. /foo/{id}.json

I'm trying to DRY up my documentation.

Can I somehow specify path variables (especially when nested) while also DRYing up my documentation? For example, for the two paths above, could I have a single show documented in a base class that would handle both (and other similar) cases?

josh1703658784 avatar Oct 27 '16 16:10 josh1703658784