Code Review
/
portal
/
ric-dashboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add missing @Bean method to create ggNodebsApi
[portal/ric-dashboard.git]
/
webapp-backend
/
src
/
main
/
java
/
org
/
oransc
/
ric
/
portal
/
dashboard
/
config
/
XappManagerConfiguration.java
diff --git
a/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/XappManagerConfiguration.java
b/webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/XappManagerConfiguration.java
index
9416c67
..
00cd939
100644
(file)
--- a/
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/XappManagerConfiguration.java
+++ b/
webapp-backend/src/main/java/org/oransc/ric/portal/dashboard/config/XappManagerConfiguration.java
@@
-54,22
+54,25
@@
public class XappManagerConfiguration {
this.xappMgrBasepath = xappMgrBasepath;
}
this.xappMgrBasepath = xappMgrBasepath;
}
+ private ApiClient apiClient() {
+ ApiClient apiClient = new ApiClient(new RestTemplate());
+ apiClient.setBasePath(xappMgrBasepath);
+ return apiClient;
+ }
+
/**
* @return A HealthApi with an ApiClient configured from properties
*/
@Bean
public HealthApi xappHealthApi() {
/**
* @return A HealthApi with an ApiClient configured from properties
*/
@Bean
public HealthApi xappHealthApi() {
- ApiClient apiClient = new ApiClient(new RestTemplate());
- apiClient.setBasePath(xappMgrBasepath);
- return new HealthApi(apiClient);
+ return new HealthApi(apiClient());
}
}
+
/**
* @return An XappApi with an ApiClient configured from properties
*/
@Bean
public XappApi xappMgrApi() {
/**
* @return An XappApi with an ApiClient configured from properties
*/
@Bean
public XappApi xappMgrApi() {
- ApiClient apiClient = new ApiClient(new RestTemplate());
- apiClient.setBasePath(xappMgrBasepath);
- return new XappApi(apiClient);
+ return new XappApi(apiClient());
}
}
}
}