3.0.3 • Published 1 year ago

@hangxingliu/ts-openapi v3.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

Typescript OpenAPI Utils

ci

npm install @hangxingliu/ts-openapi
# or
yarn add @hangxingliu/ts-openapi

Usage

Most cases start from OpenApiDocument, Then adding api by OpenApiDocument#editPath, and describe the api by method chains.

In a nutshell:

const docs = new OpenAPIDocumentBuilder();
docs.editPath('get', '/user/:userId')
  .tags(["User"])
  .jsonResponse('200', [UserEntity]);

See test/project/index.ts

TODO

  • Add documents, js2doc
  • Add unit tests for TypeORM
3.0.3

1 year ago

1.1.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago