Optional
helperClass: (new (args: unknown) => OpenAPIHelperInterface)The added/updated routes
[[include:openapi.addDefaultSecurity.1.md]]
Example:
openapi.addDefaultSecurity({
basicAuth: []
});
Example:
openapi.addDefaultSecurity({
basicAuth: []
});
Example:
openapi.addDefaultSecurity('basicAuth');
Example:
openapi.addResponse('200', {
"description": "A simple string response",
"content": {
"text/plain": {
"schema": {
"type": "string",
"example": "whoa!"
}
}
}
});
[[include:openapi.addResponse.md]]
[[include:openapi.addSecuritySchemes.1.md]]
[[include:openapi.addSecuritySchemes.2.md]]
Optional
method: stringremove all routes
The removed routes
[[include:openapi.setDefaultSecurity.1.md]]
Example:
openapi.setDefaultSecurity({
basicAuth: []
});
Example:
openapi.setDefaultSecurity('basicAuth');
[[include:openapi.setSecuritySchemes.1.md]]
[[include:openapi.setSecuritySchemes.2.md]]
OpenAPI doc generator.
[[include:openapi.md]]
Note
For now it is not possible to only send files outside of object property (multipart). Well, at least not tried yet but it definitely doesn't work with alternatives.