api

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 0 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 api holds the server side generated from api/openapi.json.

  • apigen: generation-time tool that normalises the contract for ogen and writes the role table.
  • oas: ogen server code (types, strict handler interface, router, request validation).
  • routes: operationId -> method, path, minimum role, module tag (from x-min-role).

Regenerate with `make generate-api`; never edit the generated files.

Directories

Path Synopsis
Command apigen prepares api/openapi.json for ogen and writes the role table.
Command apigen prepares api/openapi.json for ogen and writes the role table.
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly.
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly.
Package routes maps every operationId of the contract to its method, path, minimum role and module.
Package routes maps every operationId of the contract to its method, path, minimum role and module.

Jump to

Keyboard shortcuts

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