mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-09 12:27:47 +00:00
adding Experimental back to createApiPageMD and fixing auth section
This commit is contained in:
@@ -73,6 +73,7 @@ export function createApiPageMD({
|
||||
frontMatter.show_extensions
|
||||
? createVendorExtensions(extensions)
|
||||
: undefined,
|
||||
createExperimentalNotice(parameters),
|
||||
createDeprecationNotice({ deprecated, description: deprecatedDescription }),
|
||||
createDescription(description),
|
||||
requestBody || parameters ? createRequestHeader("Request") : undefined,
|
||||
@@ -86,17 +87,6 @@ export function createApiPageMD({
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
function createDeprecation({ deprecated, description }: { deprecated?: boolean; description?: string }) {
|
||||
if (deprecated == true) {
|
||||
if (description !== undefined) {
|
||||
return `:::caution deprecated\n\n${description}\n\n:::`;
|
||||
} else {
|
||||
return `:::caution deprecated\n\nThis endpoint has been deprecated and may be replaced or removed in future versions of the API.\n\n:::`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function createExperimentalNotice(parameters){
|
||||
if (parameters && parameters.some(element => element.in === 'header' && element.name === 'X-SailPoint-Experimental')) {
|
||||
return ":::warning experimental\n\nThis API is currently in an experimental state. The API is subject to change based on feedback and further testing. You must include the X-SailPoint-Experimental header and set it to `true` to use this endpoint.\n\n:::\n\n";
|
||||
|
||||
Reference in New Issue
Block a user