Skip to main content

OpenAPI Specification

Generate Swagger/OpenAPI specification files using Apexlang.

OpenAPIV3Visitor

Transport layerSource code

This visitor creates a valid Swagger/OpenAPI v3 specification for all @service interfaces using protoc-gen-go. This should be used in conjunction with a language specific wrapper generator (for example, FiberVisitor for Go) to generate the boilerplate code.

Example

generates:
openapi.yaml:
module: 'https://deno.land/x/apex_codegen@v0.1.9/openapiv3/mod.ts'
visitorClass: OpenAPIV3Visitor

Configuration

Not applicable