2.5.0 • Published 9 months ago

@sleeksky/alt-swagger v2.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Spec API

Quickly spec your APIs for Swagger / OpenAPI interface. Uses @sleeksky/alt-schema for specifying JSON schema.

Example

let refRequest = docs.ref.schema('example','{id:i:1,name:s:foo,label:{id:i:2,name:?s:bar},arr:[{a:b:false}]}');

docs.put('/:id').tag("dot-notation").req(refRequest).res(200, '{hello,world}');

npm.io

Installation

npm install -s @sleeksky/alt-swagger

const docs = require('@sleeksky/alt-swagger');

Usage

See example.js

License

MIT © SleekSky

2.5.0

9 months ago

2.4.0

9 months ago

2.3.2

1 year ago

2.3.1

1 year ago

2.2.2

1 year ago

2.3.0

2 years ago

2.2.1

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago