httpapi

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package httpapi wires the Control Tower Settings Console endpoints into the server's http.ServeMux. Three routes, all under /api/v1/control-tower/settings:

GET  /api/v1/control-tower/settings          — list all settings (G26)
GET  /api/v1/control-tower/settings/{key}    — get one setting (G27)
PUT  /api/v1/control-tower/settings/{key}    — update one setting (G29)

The service validates every key against the catalog and redacts sensitive values, so the handlers are thin decode → service → writeResult adapters mirroring cancelRunHandler (projectautomation/httpapi/httpapi.go:231).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(mux *http.ServeMux, svc *settings.Service)

RegisterRoutes mounts the settings endpoints. No-op if either dep is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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