simply-openapi

所属分类:数据挖掘/数据仓库
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-11-19 16:07:17
上 传 者sh-1993
说明:  Simply Express controller是OpenAPI First控制器库。它通过在控制器上消耗一个参数来产生完全鲁棒的方法处理程序...
(Simply Express Controllers is an OpenAPI-First controller library. It produces fully robust method handlers on controllers by consuming an OpenAPI 3.1 specification and calling your handlers with all data pre-validated and coerced according to your specification.)

文件列表:
.husky/ (0, 2023-12-22)
.husky/pre-commit (26, 2023-12-22)
.vscode/ (0, 2023-12-22)
.vscode/launch.json (1508, 2023-12-22)
.vscode/settings.json (28, 2023-12-22)
.vscode/tasks.json (322, 2023-12-22)
TODO.md (1050, 2023-12-22)
examples/ (0, 2023-12-22)
examples/simple/ (0, 2023-12-22)
examples/simple/openapi.json (6316, 2023-12-22)
examples/simple/package.json (1085, 2023-12-22)
examples/simple/src/ (0, 2023-12-22)
examples/simple/src/build-openapi.ts (1139, 2023-12-22)
examples/simple/src/controllers/ (0, 2023-12-22)
examples/simple/src/controllers/index.ts (412, 2023-12-22)
examples/simple/src/controllers/widgets.authenticator.ts (902, 2023-12-22)
examples/simple/src/controllers/widgets.controller.ts (3112, 2023-12-22)
examples/simple/src/entities/ (0, 2023-12-22)
examples/simple/src/entities/widgets.schema.ts (1169, 2023-12-22)
examples/simple/src/index.ts (595, 2023-12-22)
examples/simple/src/json-schema.ts (677, 2023-12-22)
examples/simple/src/openapi.ts (133, 2023-12-22)
examples/simple/src/services/ (0, 2023-12-22)
examples/simple/src/services/widgets.service.ts (1448, 2023-12-22)
examples/simple/src/tsconfig.json (466, 2023-12-22)
package-lock.json (458386, 2023-12-22)
package.json (430, 2023-12-22)
packages/ (0, 2023-12-22)
packages/controllers-ast/ (0, 2023-12-22)
packages/controllers-ast/.lintstagedrc.json (41, 2023-12-22)
packages/controllers-ast/jest.config.ts (321, 2023-12-22)
packages/controllers-ast/package.json (872, 2023-12-22)
packages/controllers-ast/src/ (0, 2023-12-22)
packages/controllers-ast/src/ControllersAstScanner.ts (1673, 2023-12-22)
packages/controllers-ast/src/index.ts (41, 2023-12-22)
packages/controllers-ast/src/tests/ (0, 2023-12-22)
packages/controllers-ast/src/tests/controllers.test.ts (938, 2023-12-22)
packages/controllers-ast/src/tests/expects.ts (348, 2023-12-22)
... ...

# Simply OpenAPI Simply OpenAPI is a collection of tools for simplifying development of OpenAPI compliant back-ends. Its core philosophy is that the OpenAPI spec for your back-end should be the primary source of truth of all behaviors. Endpoints, data validation, and data types should all be well-defined in the OpenAPI schema and reflect the exact behaviors of the endpoints produced. To this end, the tools in this library are designed around two use cases: * Automatic generation of OpenAPI specs from web request controllers that accurately reflect the endpoint, including enforcement of validation against endpoint schemas for parameters, bodies, and return types. * Binding of controllers to pre-existing hand written OpenAPI specifications, with automatic implementation of boilerplate validation against the parameter, body, and return type specs defined by that specification. ## Libraries in this collection * [Simply OpenAPI Controllers](https://github.com/SunsetFi/simply-openapi/blob/master/packages/controllers/) - Production of OpenAPI spec from controllers, binding of controllers to existing specs, and the creation of Express routers from the spec and controllers. ## Example implementations * [Simple Example](https://github.com/SunsetFi/simply-openapi/blob/master/https://github.com/SunsetFi/simply-openapi/tree/main/examples/simple) - A basic example of using Simply OpenAPI Controllers

近期下载者

相关文件


收藏者