Skip to main content
Module

x/alosaur/openapi/mod.ts>AlosaurOpenApiBuilder

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class AlosaurOpenApiBuilder
import { AlosaurOpenApiBuilder } from "https://deno.land/x/alosaur@v0.38.0/openapi/mod.ts";

For testing this builder use this editor: https://editor.swagger.io/

Constructors

new
AlosaurOpenApiBuilder(settings: AppSettings)

Properties

private
appMetadata: MetadataArgsStorage<T>
private
builder: OpenApiBuilder
private
classes: ObjectKeyAny[]
private
optional
denoDocs: DenoDoc.RootDef[]
private
optional
namesDenoDocMap: ParsedNamesDocMap
private
openApiMetadata: OpenApiArgsStorage<T>
private
routes: RouteMetadata[]

Methods

private
getPathItem(route: RouteMetadata): oa.PathItemObject

Gets operation from app route metadata

addDescription(description: string): AlosaurOpenApiBuilder<T>
addServer(server: oa.ServerObject): AlosaurOpenApiBuilder<T>
getSpec(): oa.OpenAPIObject
print(): void

Static Methods

parseDenoDoc(path?: string): Promise<any>