Skip to content

Commit d8ea2b2

Browse files
Render resource samples
1 parent 4c50e36 commit d8ea2b2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/layouts/partials/api-resource.hbs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
{{description}}
99
{{/if}}
10+
{{#if resourceSamples.length}}
11+
12+
{% tabs %}
13+
{{#each resourceSamples}}
14+
{% tab title="{{toCapitalCase this.resourceDataSyntax}}" %}
15+
```{{this.resourceDataSyntax}}
16+
{{{this.resourceData}}}
17+
```
18+
{% endtab %}
19+
{{/each}}
20+
{% endtabs %}
21+
{{/if}}
1022

1123
{{#each properties}}
1224
{{#if ../headingOffset}}

0 commit comments

Comments
 (0)