openapi

package
v0.0.54 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

README

api/openapi

The generated OpenAPI description of the API server's HTTP surface. Nothing in this package is written by hand — the entire contents are produced by swaggo from the annotation comments on the route handlers and the struct tags on the types those handlers accept and return. It exists so the specification can be embedded in the binary and served alongside the API itself, giving operators and agent authors a live, always-matching contract without a separate publishing step.

The package holds the spec in three forms: a Go source file that registers the document with the swaggo runtime registry at import time, and standalone JSON and YAML copies of the same document for consumption by external tooling. The Go form carries the document as a template, with the title, version, host, and base path substituted at registration time from the values declared in the server's top-level annotations. Route handlers elsewhere in the server reference this registration to serve the interactive documentation UI.

Because every file here is generated, changes are made by editing the annotations at the source and regenerating, never by editing this directory. Regeneration is required whenever a route is added or removed, a handler's parameters, responses, or descriptions change, or the JSON shape of a type crossing the API boundary changes — a stale spec here will silently misdescribe the server rather than fail to build.

Documentation

Overview

Package openapi Code generated by swaggo/swag. DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var SwaggerInfo = &swag.Spec{
	Version:          "1.0",
	Host:             "",
	BasePath:         "/api/v1",
	Schemes:          []string{},
	Title:            "Quincy API",
	Description:      "CCDC-style competition scoring engine. Manages scoring data and serves check assignments to agents.",
	InfoInstanceName: "swagger",
	SwaggerTemplate:  docTemplate,
	LeftDelim:        "{{",
	RightDelim:       "}}",
}

SwaggerInfo holds exported Swagger Info so clients can modify it

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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