文件名称:swaggerize:从sequelize.js对象生成模型模型定义
文件大小:15KB
文件格式:ZIP
更新时间:2024-06-12 00:11:25
JavaScript
大张旗鼓 从序列化对象生成Swagger REST API 用法 var Sequelize = require ( 'sequelize' ) , Swaggerize = require ( './index.js' ) , db = new Sequelize ( ) ; // With credentials, this would be // var db = new Sequelize( // config.database, // config.username, // config.password, // config.options); // Load your models here, or use the simple model below. db . define
【文件预览】:
swaggerize-master
----.gitignore(168B)
----README.md(5KB)
----test()
--------test.js(485B)
----fixtures()
--------models()
----LICENSE(1KB)
----sample_run.js(130B)
----.jshintrc(592B)
----package.json(958B)
----index.js(115B)
----sample()
--------fixture.json(35KB)
--------fixture.yaml(24KB)
----lib()
--------swaggerize.js(7KB)
--------utils.js(11KB)