From 05614650a7fc8104a75e88c6c987585d893548f6 Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Thu, 22 Aug 2024 16:26:48 +0200 Subject: [PATCH] Create api resource page template --- src/layouts/api-resource.hbs | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/layouts/api-resource.hbs diff --git a/src/layouts/api-resource.hbs b/src/layouts/api-resource.hbs new file mode 100644 index 00000000..3c6d76b3 --- /dev/null +++ b/src/layouts/api-resource.hbs @@ -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}} \ No newline at end of file