Files
services/cmd/docgen/README.md
2021-01-20 10:44:26 +00:00

976 B

Docgen

This scripts takes open api specs that are generated in each folder by make proto (see api-users.json and similar in each folder), and existing README.md and generates docs that appear on services.m3o.com.

The readmes are taken verbatim and autogenerated client call examples are appended to them to produce an output readme, so there is no need to write curl or micro cli or any other examples. Focus on the describing the service in the readmes.

Some rules on how to write protos so they nicely appear in the output of this script:

  • The request types (eg. LoginRequest) comments will be taken and used as a description for the endpoint (eg. Login) itself. This might change.
  • The proto message field comments will be taken and displayed to craft them with care

To provide example values use the following format:

// rss feed name
// eg. a16z
string name = 1;

The part after the eg. until the newline will be used as example value.