ergo / pyramid_apispec

Pyramid plugin for openapi spec generation (using ApiSpec)
BSD 3-Clause "New" or "Revised" License
23 stars 10 forks source link

Support routes with regular expression #7

Closed drnextgis closed 6 years ago

drnextgis commented 6 years ago

pyramid_apispec don't handle routes with regular expression. For example:

config.add_route('resource.item', '/api/resource/{id:\d+}')

Swagger UI produces the following curl:

curl -X DELETE "http://localhost:6544/api/resource/{id:\d+}" -H "accept: application/json"
ergo commented 6 years ago

Thanks, I'll look into this.

ergo commented 6 years ago

Can you try trunk version of the package, this should be now fixed.

drnextgis commented 6 years ago

It works! Thank you very much.