This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

keq-swagger-path
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

keq-swagger-path

version downloads license dependencies coveralls

Convert swagger path to uri path.(eg. /user/{id} -> /user/:id)

Usage

import { request } from 'keq'
import swaggerPath from 'keq-swagger-path'

request.use(swaggerPath())

// Will send request to 'www.example.com/user/1'
request
  .get('www.example.com/user/{id}')
  .params('id', 1)
  .end()

Sponsor

Support code development on patron.

patron

Contributing & Development

If there is any doubt, it is very welcome to discuss the issue together. Please read Contributor Covenant Code of Conduct and CONTRIBUTING.

Package Sidebar

Install

npm i keq-swagger-path

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

21 kB

Total Files

24

Last publish

Collaborators

  • val.istar.guo