1
0
mirror of synced 2025-12-23 11:54:18 -05:00

Fix management console API URLs (#25562)

* No /api/v3 for mgmt console operations

* Add updated decorated files
This commit is contained in:
Robert Sese
2022-02-24 16:51:01 -06:00
committed by GitHub
parent 28659e92ad
commit f48d536bbf
6 changed files with 112 additions and 110 deletions

View File

@@ -27,6 +27,8 @@ function createCodeSamples(operation) {
serverUrl === 'https://api.github.com'
) {
codeSampleParams.serverUrl = operation.servers[0].variables.origin.default
} else if (operation.subcategory && operation.subcategory === 'management-console') {
codeSampleParams.serverUrl = serverUrl.replace('/api/v3', '')
}
return [