Skip to content

Documentation Generation #74

@jpillora

Description

@jpillora

I'm thinking of using echo for a large project and one of the requirements will be extensive documentation, it would be nice to automatically keep the code and docs in sync with something like:

e := echo.New()
...
//with cli flag, or even via another REST endpoint
if generate {
  //json.MarshalIndent internal echo structures (fn name, methods, urls, params, middleware, etc.)
  b := e.GenerateSpec()
  //display
  os.Stdout.Write(b)
  //or, send to documentation server
  http.Post("...", "application/json", &bytes.NewBuffer(b))
}

Then the user could convert the structures into:

Thoughts?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions