Fixing API endpoint not getting properly added when the APIs are registered

4.x.x
prabathabey 10 years ago
parent a46d3a41de
commit a0571dd310

@ -67,7 +67,7 @@ public class APIPublisherConfig {
return apiConfigs; return apiConfigs;
} }
public void setApiConfig(List<APIConfig> apiConfigs) { public void setApiConfigs(List<APIConfig> apiConfigs) {
this.apiConfigs = apiConfigs; this.apiConfigs = apiConfigs;
} }

@ -173,7 +173,7 @@ public final class DeviceManagerUtil {
API api = new API(id); API api = new API(id);
try { try {
api.setContext(config.getContext()); api.setContext(config.getContext());
api.setUrl(config.getVersion()); api.setUrl(config.getEndpoint());
api.setUriTemplates(getURITemplates(config.getEndpoint(), api.setUriTemplates(getURITemplates(config.getEndpoint(),
APIConstants.AUTH_APPLICATION_OR_USER_LEVEL_TOKEN)); APIConstants.AUTH_APPLICATION_OR_USER_LEVEL_TOKEN));
api.setVisibility(APIConstants.API_GLOBAL_VISIBILITY); api.setVisibility(APIConstants.API_GLOBAL_VISIBILITY);

Loading…
Cancel
Save