keq-swagger-path

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

Usage no npm install needed!

<script type="module">
  import keqSwaggerPath from 'https://cdn.skypack.dev/keq-swagger-path';
</script>

README

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.