openapi3-generator
Version:
Use your API OpenAPI 3 definition to generate code, documentation, and literally anything you need.
41 lines (33 loc) • 763 B
Markdown
# {{swagger.info.title}}
{{{swagger.info.descriptionAsHTML}}}
## Table of Contents
{{#if openapi.info.termsOfService}}
* [Terms of Service](#termsOfService)
{{/if}}
{{#if openapi.servers}}
* [Connection Details](#servers)
{{/if}}
{{#if openapi.paths}}
* [Paths](#paths)
{{#each openapi.paths as |path pathName|}}
{{#each path as |op opName|}}
{{#validMethod opName}}
- [`{{uppercase opName}}` {{pathName}}](#{{op.slug}})
{{/validMethod}}
{{/each}}
{{/each}}
{{/if}}
{{#if openapi.components.schemas}}
* [Schemas](#schemas)
{{#each openapi.components.schemas as |schema schemaName|}}
{{#if schema.slug}}
- [{{schema.title}}](#{{schema.slug}})
{{else}}
- {{schema.title}}
{{/if}}
{{/each}}
{{/if}}
{{> info}}
{{> security}}
{{> paths }}
{{> schemas }}