Optional
helperClass: new (args: unknown) => OpenAPIHelperInterfaceThe added/updated routes
The added/updated routes
{@include ../../typedocIncludes/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 ../../typedocIncludes/openapi.addResponse.md}
{@include ../../typedocIncludes/openapi.addSecuritySchemes.1.md}
{@include ../../typedocIncludes/openapi.addSecuritySchemes.2.md}
Optional
method: stringremove all routes
The removed routes
{@include ../../typedocIncludes/openapi.setDefaultSecurity.1.md}
Example:
openapi.setDefaultSecurity({
basicAuth: []
});
Example:
openapi.setDefaultSecurity('basicAuth');
{@include ../../typedocIncludes/openapi.setResponses.md}
{@include ../../typedocIncludes/openapi.setSecuritySchemes.1.md}
{@include ../../typedocIncludes/openapi.setSecuritySchemes.2.md}
OpenAPI doc generator.
{@include ../../typedocIncludes/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.