Openapize
Mount rest api depends on OpenAPI doc file for express app.
Getting started
const openapize = require("@sigodenjs/openapize");
const express = require("express");
const bodyParser = require("body-parser");
const app = express();
app.use(bodyParser.json());
openapize(app, {
api: require("./fixtures/defs/pets.json"),
handlers: require("./handlers"),
security: require("./security"),
mapAPI: function(api) {
return api;
},
noHandlerAPI: function(api) {
}
});
Limit
ParameterObject
does not support content
RequestBodyObject.content
has at most one MeidaObject
OperationObject.security
has at most one securitySchemes
Licese
Copyright (c) 2018 sigoden
Licensed under the MIT license.