openapi

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package openapi describes a tenant's HTTP API as an OpenAPI 3.1 document: the auth, CRUD and file endpoints it has enabled and its pipeline functions. Only what a client can call is listed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(cfg *tenant.TenantConfig, opts Options) map[string]any

Build returns the OpenAPI document of cfg, ready to marshal as JSON.

Types

type Options

type Options struct {
	// ServerURL is the base URL clients call; "/" when empty.
	ServerURL string
	// TenantHeader adds the X-Tenant-ID header a central server needs.
	TenantHeader string
}

Options sets where the API is served.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL