-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render the auth scheme in generated docs
- Loading branch information
1 parent
4d7e236
commit a7c4733
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
packages/ui/app/src/api-page/endpoints/EndpointAuthSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ApiAuth } from "../../../../../fdr-sdk/src/client/generated/api/resources/api/resources/v1/resources/read"; | ||
|
||
export declare namespace EndpointAuthSection { | ||
export interface Props { | ||
auth: ApiAuth; | ||
} | ||
} | ||
|
||
export const EndpointAuthSection: React.FC<EndpointAuthSection.Props> = ({ auth }) => { | ||
return ( | ||
<div className="scroll-mt-content-padded fern-api-property"> | ||
<div className="fern-api-property-header"> | ||
<span className="fern-api-property-key">{auth.tokenName}</span> | ||
<span className="fern-api-property-meta"> | ||
{auth.type} | ||
<span className="t-danger">Required</span> | ||
</span> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters