This is an automated email from the ASF dual-hosted git repository.
robotljw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/master by this push:
new f8f5d8b0 [fix] Replace metadata URL to show more information
new 084378c3 Merge pull request #1300 from robotLJW/master
f8f5d8b0 is described below
commit f8f5d8b06573e27673c404a67ad9a028a21c686f
Author: robotLJW <[email protected]>
AuthorDate: Wed Apr 27 21:31:33 2022 +0800
[fix] Replace metadata URL to show more information
---
frontend/app/apiList/apiList.js | 4 ++++
.../scripts/modules/serviceCenter/controllers/serviceInfoCtrl.js | 6 +++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/frontend/app/apiList/apiList.js b/frontend/app/apiList/apiList.js
index 71e26368..ad6346da 100644
--- a/frontend/app/apiList/apiList.js
+++ b/frontend/app/apiList/apiList.js
@@ -39,6 +39,10 @@ angular.module('serviceCenter')
url:
'v4/default/registry/microservices/{{serviceId}}/schemas/{{schemaId}}',
method: 'GET'
},
+ specifiedService: {
+ url:
'v4/default/govern/microservices/{{serviceId}}?options=instances',
+ method: 'GET'
+ },
allServices: {
url:
'v4/default/govern/microservices?options=instances,dependencies&withShared=true',
method: 'GET'
diff --git
a/frontend/app/scripts/modules/serviceCenter/controllers/serviceInfoCtrl.js
b/frontend/app/scripts/modules/serviceCenter/controllers/serviceInfoCtrl.js
index 34aa30f7..053171c7 100644
--- a/frontend/app/scripts/modules/serviceCenter/controllers/serviceInfoCtrl.js
+++ b/frontend/app/scripts/modules/serviceCenter/controllers/serviceInfoCtrl.js
@@ -42,9 +42,9 @@ angular.module('serviceCenter.sc')
var providerUrl = apiConstant.api.provider.url;
var providerApi = providerUrl.replace('{{providerId}}',
serviceId);
apis.push(providerApi);
- var serviceUrl = apiConstant.api.particularService.url;
- var particularServiceAPI =
serviceUrl.replace('{{serviceId}}', serviceId);
- apis.push(particularServiceAPI)
+ var serviceUrl = apiConstant.api.specifiedService.url;
+ var specifiedServiceAPI =
serviceUrl.replace('{{serviceId}}', serviceId);
+ apis.push(specifiedServiceAPI)
var promises =[];
for (var i = 0; i < apis.length; i++) {