Closed Matt-Murungi closed 3 years ago
APISpec does not support mapping a path to multiple methods of the same type (e.g. 2 GETs), and falcon-apispec binds a resource to a path at registration, so supporting this may prove to be much more challenging than it looks.
We could pass an additional kwarg to spec.path(resource=...) to specify we'd like to register the suffix'ed method(s)?
@hharutyunyan the issue now is that only one path per resource is mapped. All paths should be mapped for a given resource since that's why suffixes were added to Falcon in the first place.
I'm thinking calls to
spec.path
for multiple paths should look like:And the plugin should be more like:
Originally posted by @chretienmn in https://github.com/alysivji/falcon-apispec/issues/18#issuecomment-637891479