Skip to content

Commit 0371c2a

Browse files
committed
api ref
1 parent c2d5f75 commit 0371c2a

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

settings.mdx

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -544,47 +544,52 @@ This section contains the full reference for the `docs.json` file.
544544
### API Configurations
545545

546546
<ResponseField name="api" type="object">
547-
API reference configuration and playground settings
547+
API documentation and interactive playground settings.
548548

549549
<Expandable title="Api">
550550
<ResponseField name="openapi" type="string or array or object">
551-
A string or an array of strings of absolute or relative urls pointing to the OpenAPI file(s)
551+
OpenAPI specification files for generating API documentation. Can be a single URL/path or an array of URLs/paths.
552552

553553
<Expandable title="Openapi">
554554
<ResponseField name="source" type="string">
555-
555+
URL or path to your OpenAPI specification file.
556+
556557
Minimum length: 1
557558
</ResponseField>
558559
<ResponseField name="directory" type="string">
559-
no starting slash in the directory
560+
Directory to search for OpenAPI files.
561+
562+
Do not include a leading slash.
560563
</ResponseField>
561564
</Expandable>
562565
</ResponseField>
563566
<ResponseField name="asyncapi" type="string or array or object">
564-
A string or an array of strings of absolute or relative URLs pointing to the AsyncAPI file(s)
567+
AsyncAPI specification files for generating API documentation. Can be a single URL/path or an array of URLs/paths.
565568

566569
<Expandable title="Asyncapi">
567570
<ResponseField name="source" type="string">
568-
The path to the AsyncAPI files.
571+
URL or path to your AsyncAPI specification file.
569572

570573
Minimum length: 1
571574
</ResponseField>
572575
<ResponseField name="directory" type="string">
573-
The directory to search for AsyncAPI files.
576+
Directory to search for AsyncAPI files.
577+
578+
Do not include a leading slash.
574579
</ResponseField>
575580
</Expandable>
576581
</ResponseField>
577582
<ResponseField name="params" type="object">
578-
Configurations for the API parameters
583+
Display settings for API parameters.
579584

580585
<Expandable title="Params">
581586
<ResponseField name="expanded" type="&quot;all&quot; | &quot;closed&quot;">
582-
The view mode of expandable API parameters. Defaults to `closed`.
587+
Whether to expand all parameters by default. Defaults to `closed`.
583588
</ResponseField>
584589
</Expandable>
585590
</ResponseField>
586591
<ResponseField name="playground" type="object">
587-
Configurations for the API playground
592+
API playground settings.
588593

589594
<Expandable title="Playground">
590595
<ResponseField name="display" type="&quot;interactive&quot; | &quot;simple&quot; | &quot;none&quot;">
@@ -596,35 +601,35 @@ This section contains the full reference for the `docs.json` file.
596601
</Expandable>
597602
</ResponseField>
598603
<ResponseField name="examples" type="object">
599-
Configurations for the autogenerated API examples
604+
Configurations for the autogenerated API examples.
600605

601606
<Expandable title="Examples">
602607
<ResponseField name="languages" type="array of string">
603608
Example languages for the autogenerated API snippets
604609
</ResponseField>
605610
<ResponseField name="defaults" type="&quot;required&quot; | &quot;all&quot;">
606-
Whether to show optional parameters in api examples, defaults to `all`
611+
Whether to show optional parameters in API examples. Defaults to `all`.
607612
</ResponseField>
608613
</Expandable>
609614
</ResponseField>
610615
<ResponseField name="mdx" type="object">
611-
Configurations for API pages generated from MDX files
616+
Configurations for API pages generated from `MDX` files.
612617

613618
<Expandable title="Mdx">
614619
<ResponseField name="auth" type="object">
615-
Authentication configuration for the API
620+
Authentication configuration for MDX-based API requests.
616621

617622
<Expandable title="Auth">
618623
<ResponseField name="method" type="&quot;bearer&quot; | &quot;basic&quot; | &quot;key&quot; | &quot;cobo&quot;">
619-
Authentication method for the API
624+
Authentication method for API requests.
620625
</ResponseField>
621626
<ResponseField name="name" type="string">
622-
Authentication name for the API
627+
Authentication name for API requests.
623628
</ResponseField>
624629
</Expandable>
625630
</ResponseField>
626631
<ResponseField name="server" type="string or array">
627-
The server configuration for the API.
632+
Server configuration for API requests.
628633
</ResponseField>
629634
</Expandable>
630635
</ResponseField>

0 commit comments

Comments
 (0)