Fix management console API URLs (#25562)
* No /api/v3 for mgmt console operations * Add updated decorated files
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user