Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 712 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 712 Bytes

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!