Add in-api api docs.

I love those.
Generate pretty json for docs.