Skip to content

Commit

Permalink
Create api resource page template
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Aug 22, 2024
1 parent 65c5d8f commit 0561465
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/layouts/api-resource.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{{#each resources}}
{{#if description}}
{{description}}
{{/if}}

## `{{name}}`

{{#each properties}}
### `{{name}}`
{{#if isDeprecated}}

{% hint style="warning" %}
**Deprecated** use something else.
{% endhint %}
{{/if}}
{{#if description}}

{{description}}
{{/if}}

Type: `{{jsonType}}`
{{#if format}}
Format: `{{format}}`
{{/if}}
---
{{/each}}
{{/each}}
## Endpoints
{{#each endpoints}}
### [`{{path}}`]()
{{description}}
---

{{/each}}
## Events

{{~#each events}}
### `{{name}}`

{{description}}
---
{{~/each}}

0 comments on commit 0561465

Please sign in to comment.