Skip to content

Commit 5fd4dd3

Browse files
Render resource samples on route page (#578)
Co-authored-by: Seam Bot <seambot@getseam.com>
1 parent 4c50e36 commit 5fd4dd3

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

docs/api/acs/systems/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ Within an `acs_system`, create [`acs_user`s](https://docs.seam.co/latest/api/acs
88

99
For details about the resources associated with an access control system, see the [access control systems namespace](https://docs.seam.co/latest/api/acs).
1010

11+
{% tabs %}
12+
{% tab title="JSON" %}
13+
```json
14+
{ "acs_system_id": "bbcea306-7201-4d85-b527-3abc55277203" }
15+
```
16+
{% endtab %}
17+
{% endtabs %}
18+
1119
### `acs_access_group_count`
1220

1321
Format: `Number`

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="{{#if (eq this.resourceDataSyntax 'json')}}JSON{{else}}{{toCapitalCase this.resourceDataSyntax}}{{/if}}" %}
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)