You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fern/products/docs/pages/api-references/api-ref-content.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ By including the `summary` field, the `API Reference` section title will link to
55
55
56
56
## Adding Markdown content between endpoints
57
57
58
-
In addition to adding Markdown content to individual endpoints, you can also include Markdown content between endpoints in your API Reference. This content can provide context or explanations that apply to multiple endpoints.
58
+
You can also include Markdown content between endpoints in your API Reference. This content can provide context or explanations that apply to multiple endpoints.
59
59
60
60
This feature requires you to use the `layout` field in your `docs.yml` file, which is described in the [Customize your API Reference](/learn/docs/api-references/customize-api-reference-layout) guide.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/api-references/autopopulate-api-key.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Auto-populate API keys
2
+
title: Autopopulate API keys
3
3
subtitle: Make integrating with your API frictionless by adding your login flow to the API Explorer.
4
4
---
5
5
@@ -25,9 +25,9 @@ API key injection can work in two different ways depending on your company's aut
25
25
26
26
To enable this feature, you need to configure authentication so that Fern can securely retrieve API keys for your users. The process works as follows:
27
27
28
-
1. When a user clicks the "Login" button in the API Explorer, they are redirected to your authentication page.
28
+
1. When a user clicks the "Login" button in the API Explorer, they're redirected to your authentication page.
29
29
2. After successful authentication, your system must set a cookie called `fern_token` in the user's browser.
30
-
3. This token should be a [JWT](https://jwt.io) encrypted with a secret key that we provide. The JWT should contain the user's API key.
30
+
3. This token should be a [JWT](https://jwt.io) encrypted with a secret key from Fern. The JWT should contain the user's API key.
31
31
32
32
The JWT should have a structure similar to:
33
33
@@ -89,13 +89,13 @@ The JWT should have a structure similar to:
89
89
90
90
<Markdownsrc="/snippets/jwt-auth-diagram.mdx"/>
91
91
92
-
#### Setting up auto-populated API keys
92
+
#### Setting up autopopulated API keys
93
93
94
94
-[ ] Reach out to Fern to get your secret key
95
95
-[ ] Send Fern the URL of your authentication page. This is where users will be redirected to after clicking the "Login" button in the API Explorer.
96
96
-[ ] Add logic to your service to set the `fern_token` cookie when a user logs in
97
97
98
-
<Tip>For an example of how to set up the `fern_token` cookie, see our demo implementation [here](https://github.com/fern-api/fern-platform/blob/app/packages/fern-docs/bundle/src/app/%5Bhost%5D/%5Bdomain%5D/api/fern-docs/auth/fern-token-demo/route.ts).</Tip>
98
+
<Tip>For an example of how to set up the `fern_token` cookie, see this demo implementation [here](https://github.com/fern-api/fern-platform/blob/app/packages/fern-docs/bundle/src/app/%5Bhost%5D/%5Bdomain%5D/api/fern-docs/auth/fern-token-demo/route.ts).</Tip>
99
99
100
100
</Accordion>
101
101
<Accordiontitle="OAuth"toc={true}>
@@ -113,7 +113,7 @@ To enable this feature, you need to configure OAuth authentication so that Fern
113
113
114
114
<Markdownsrc="/snippets/oauth-diagram.mdx"/>
115
115
116
-
#### Setting up auto-populated API keys
116
+
#### Setting up autopopulated API keys
117
117
118
118
To enable API key injection, you'll need to:
119
119
-[ ] Set up an authenticated account for Fern so Fern can authorize users on your behalf.
Copy file name to clipboardExpand all lines: fern/products/docs/pages/api-references/customize-api-ref.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ To customize the display of an endpoint, you can add a `title`. You can also use
168
168
</Frame>
169
169
170
170
### Hiding endpoints
171
-
You can hide an endpoint from the API reference by setting `hidden` to `true`. The endpoint will still be accessible at its URL.
171
+
You can hide an endpoint from the API Reference by setting `hidden` to `true`. The endpoint will still be accessible at its URL.
172
172
173
173
<Tabs>
174
174
<Tab title="OpenAPI Specification">
@@ -267,7 +267,7 @@ navigation:
267
267
268
268
### Adding availability
269
269
270
-
You can set the availability for the entire API reference or for specific sections. Options are: `stable`, `generally-available`, `in-development`, `pre-release`, `deprecated`, or `beta`.
270
+
You can set the availability for the entire API Reference or for specific sections. Options are: `stable`, `generally-available`, `in-development`, `pre-release`, `deprecated`, or `beta`.
| `api` (required) | Title of the API Reference Section |
22
-
| `api-name` | Name of the API we are referencing, if there are [multiple APIs](#include-more-than-one-api-reference) |
22
+
| `api-name` | Name of the API you're referencing, if there are [multiple APIs](#include-more-than-one-api-reference) |
23
23
| `audiences` | List of [audiences](/docs/api-references/audiences) that determines which endpoints, schemas, and properties are displayed in your API Reference |
24
24
| `availability` | Set the [availability status](/learn/docs/api-references/customize-api-reference-layout#adding-availability) for the entire API Reference or specific sections |
25
25
| `display-errors` | Displays error schemas in the API References |
@@ -50,7 +50,7 @@ fern/
50
50
└─ api.yml # API definition
51
51
```
52
52
53
-
For a simple setup without tabs, you can include multiple API references directly in your navigation:
53
+
For a simple setup without tabs, you can include multiple API References directly in your navigation:
54
54
55
55
```yaml title="docs.yml"
56
56
navigation:
@@ -60,7 +60,7 @@ navigation:
60
60
api-name: garden-api # Matches folder name containing your API definition
61
61
```
62
62
63
-
When using tabs, each API reference must be placed within a tab's `layout`:
63
+
When using tabs, each API Reference must be placed within a tab's `layout`:
0 commit comments