example

package module
v0.0.0-...-afee560 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 3 Imported by: 0

README

API Blueprint example

This directory contains a Go source file (example.go) which has API Blueprint definitions for a RESTish HTTP API in its comments.

Using doc-extract, we can extract these comments into an API Blueprint file (example.apib):

doc-extract . example.apib

And then we'll used a Node.js-based tool called Aglio running in Docker to render that to a nice HTML file.

docker run --rm -t -v $(pwd):/docs humangeo/aglio -i /docs/example.apib -o /docs/example.html

Viola!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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