pyramid_swagger icon indicating copy to clipboard operation
pyramid_swagger copied to clipboard

Expose interface for examining all endpoints from the spec

Open striglia opened this issue 9 years ago • 0 comments

It is quite easy to generate tuples of (name, pattern, method_type) from a swagger spec and provide these for users wishing to programmatically register their endpoints with pyramid. We should provide a method you can call to return a list of objects holding this data and let callers use it as they wish.

Minimum requirements:

  • Expose name (operationID in swagger 2.0)
  • Expose route pattern
  • Expose http method type

Possible extensions (if they're considered valuable):

  • Expose request arguments (and types?)
  • Summary
  • Security object
  • etc...

striglia avatar Aug 01 '15 03:08 striglia