Skip to content

Commit 98ac9b1

Browse files
committed
Visual Editor: Update
1 parent ddd3f83 commit 98ac9b1

File tree

1 file changed

+7
-6
lines changed
  • fern/products/api-definition/pages/openapi

1 file changed

+7
-6
lines changed

fern/products/api-definition/pages/openapi/auth.mdx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
---
22
title: Authentication
3-
subtitle: Model auth schemes such as bearer, basic, and api key.
3+
subtitle: Model auth schemes such as bearer, basic, and api key.
44
---
55

66
Configuring authentication schemes happens in the `components.securitySchemes` section of OpenAPI.
77

8+
testing
9+
810
```yml title="openapi.yml" {2-3}
911
components:
1012
securitySchemes:
@@ -112,7 +114,7 @@ components:
112114
env: PLANTSTORE_CLIENT_SECRET
113115
```
114116

115-
The generated SDK would look like:
117+
PLACEHOLDER10ee42b5c814815d9779dd9501cf6d82f084053452713baac7cdaf8a0278360c
116118

117119
```ts index.ts
118120
@@ -148,8 +150,7 @@ const client = new Client({
148150
})
149151
```
150152

151-
If you want to control variable naming and environment variables to scan,
152-
use the configuration below:
153+
PLACEHOLDERb64a0e78a36be1b80ce04294200dd76252e7d81c034abe2e93ef75cb75791afe
153154

154155
```yaml title="openapi.yml" {7-10}
155156
components:
@@ -164,7 +165,7 @@ components:
164165
prefix: "Token " # Optional
165166
```
166167

167-
The generated SDK would look like:
168+
PLACEHOLDER10ee42b5c814815d9779dd9501cf6d82f084053452713baac7cdaf8a0278360c
168169

169170
```ts index.ts
170171
@@ -193,4 +194,4 @@ components:
193194
type: apiKey
194195
in: header
195196
name: X_API_KEY
196-
```
197+
```

0 commit comments

Comments
 (0)