api.setApiId(apiId); api.setVersion(String.valueOf(version)); api.setPublicAPI(true); api.setApiPolicies(Collections.singletonList(policy));
api.setApiId(apiId); api.setVersion(String.valueOf(version)); api.setPublicAPI(true); api.setApiPolicies(Collections.singletonList(policy));
private void processData() { if (configs.size() == 0) { log.warn("File loaded into registry was empty. No entities created."); return; } try { // Naive version initially. for (Auth3ScaleBean bean : configs) { // Reflects the remote data structure. BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig(); Api api = new Api(); api.setApiId(config.getSystemName()); api.setOrganizationId(defaultOrgName); api.setEndpoint(config.getProxy().getApiBackend()); api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale api.setParsePayload(false); // can let user override this? api.setPublicAPI(true); // is there an equivalent of this? api.setVersion(defaultVersion); // don't think this is relevant anymore setPolicies(api, bean); log.debug("Processing: {0}", config); log.debug("Creating API: {0}", api); apis.add(api); } dataProcessed = true; checkQueue(); } catch (DecodeException e) { failAll(e); } }
private void processData() { if (configs.size() == 0) { log.warn("File loaded into registry was empty. No entities created."); return; } try { // Naive version initially. for (Auth3ScaleBean bean : configs) { // Reflects the remote data structure. BackendConfiguration config = bean.getThreescaleConfig().getProxyConfig().getBackendConfig(); Api api = new Api(); api.setApiId(config.getSystemName()); api.setOrganizationId(defaultOrgName); api.setEndpoint(config.getProxy().getApiBackend()); api.setEndpointContentType("text/json"); // don't think there is an equivalent of this in 3scale api.setEndpointType("rest"); //don't think there is an equivalent of this in 3scale api.setParsePayload(false); // can let user override this? api.setPublicAPI(true); // is there an equivalent of this? api.setVersion(defaultVersion); // don't think this is relevant anymore setPolicies(api, bean); log.debug("Processing: {0}", config); log.debug("Creating API: {0}", api); apis.add(api); } dataProcessed = true; checkQueue(); } catch (DecodeException e) { failAll(e); } }
gatewayApi.setApiId(versionBean.getApi().getId()); gatewayApi.setVersion(versionBean.getVersion()); gatewayApi.setPublicAPI(versionBean.isPublicAPI()); gatewayApi.setParsePayload(versionBean.isParsePayload()); if (versionBean.isPublicAPI()) {
gatewayApi.setApiId(versionBean.getApi().getId()); gatewayApi.setVersion(versionBean.getVersion()); gatewayApi.setPublicAPI(versionBean.isPublicAPI()); gatewayApi.setParsePayload(versionBean.isParsePayload()); boolean hasTx = false;
gatewayApi.setApiId(versionBean.getApi().getId()); gatewayApi.setVersion(versionBean.getVersion()); gatewayApi.setPublicAPI(versionBean.isPublicAPI()); gatewayApi.setParsePayload(versionBean.isParsePayload()); boolean hasTx = false;