swagger-path
v1.0.0
Published
convert swagger path to uri path.eg /user/{id} -> /user/:id
Downloads
2
Readme
Swagger-Path
designed to convert swagger path to uri path.
eg. /user/{id} -> /user/:id
Usage
npm install swagger-path
Example
const swagger2path = require('swagger-path');
const path = swagger2path('/users/{id}'); // '/users/:id'
License
Licensed under MIT-License