diff --git a/apps/docs/features/docs/Reference.api.utils.ts b/apps/docs/features/docs/Reference.api.utils.ts index 841c433df0d..df0c9f6d1ce 100644 --- a/apps/docs/features/docs/Reference.api.utils.ts +++ b/apps/docs/features/docs/Reference.api.utils.ts @@ -24,6 +24,7 @@ export interface IApiEndPoint { } tags?: Array security?: Array + 'x-oauth-scope'?: string } export type ISchema = diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx index ca9197dab14..67c07fccd2f 100644 --- a/apps/docs/features/docs/Reference.sections.tsx +++ b/apps/docs/features/docs/Reference.sections.tsx @@ -341,6 +341,18 @@ async function ApiEndpointSection({ link, section, servicePath }: ApiEndpointSec {endpointDetails.description} )} + {endpointDetails['x-oauth-scope'] && ( +
+

OAuth scopes

+
    +
  • + + {endpointDetails['x-oauth-scope']} + +
  • +
+
+ )} {pathParameters.length > 0 && (

Path parameters