A quick "Hello World" but for generating OpenAPI, using the Go web framework Huma.
This codebase is the combination of the two following guides:
The goal is to show you how you can export OpenAPI from your Huma application, and deploy the OpenAPI as API Reference Documentation as Bump.sh hosted docs.
Clone the repository down to give it a try.
# Start the server
$ go run .
# Export the OpenAPI
$ go run . openapi > openapi.yaml
Preview how the API reference docs look on Bump.sh.
The contents of this repository are licensed under CC BY-NC-SA 4.0.