diff --git a/src/app/designer.controller.js b/src/app/designer.controller.js index 6ad972c..d966801 100644 --- a/src/app/designer.controller.js +++ b/src/app/designer.controller.js @@ -291,7 +291,7 @@ angular } $rootScope.modules_in_use = []; - service_components = ['documentation/openapi', 'auth/api-keys', 'telemetry/newrelic', 'server/virtualhost', 'server/static-filesystem']; + service_components = ['documentation/openapi', 'auth/api-keys', 'telemetry/newrelic', 'telemetry/moesif', 'server/virtualhost', 'server/static-filesystem']; endpoint_components = ['documentation/openapi', 'websocket', 'modifier/jmespath', 'security/policies', 'modifier/response-body-generator']; backend_components = ['auth/gcp','auth/ntlm','backend/http/client','backend/soap', 'modifier/jmespath', 'security/policies', 'modifier/body-generator', 'modifier/response-body-generator', 'backend/static-filesystem']; http_server_plugins = ['ip-filter', 'jwk-aggregator', 'krakend-afero', 'basic-auth', 'geoip', 'redis-ratelimit', 'url-rewrite', 'wildcard']; @@ -814,19 +814,6 @@ angular } }; - $rootScope.updateNonGETBackends = function (endpoint_index, old_value, message) { - - var num_backends = ('undefined' === typeof $rootScope.service.endpoints[endpoint_index].backend ? 0 : $rootScope.service.endpoints[endpoint_index].backend.length); - if (num_backends > 1) { - if (old_value == 'GET' && confirm(message)) { - $rootScope.service.endpoints[endpoint_index].backend.splice(1, 10000); - } else { - // Angular already updated the value, revert: - $rootScope.service.endpoints[endpoint_index].method = 'GET'; - } - } - }; - /** * The setNoOpEncoding is called when the backend or the endpoint change their encoding. * It deletes all backend configuration and adds a backend with no-op. diff --git a/src/app/designer.module.js b/src/app/designer.module.js index b47314a..1479397 100644 --- a/src/app/designer.module.js +++ b/src/app/designer.module.js @@ -42,6 +42,10 @@ templateUrl: '/src/app/forms/api-keys.html', controller: 'KrakenDesignerController' }) + .when('/monetization', { + templateUrl: '/src/app/forms/monetization.html', + controller: 'KrakenDesignerController' + }) .otherwise({ redirectTo: '/' }); diff --git a/src/app/forms/endpoints.html b/src/app/forms/endpoints.html index b48b79d..c080fbe 100644 --- a/src/app/forms/endpoints.html +++ b/src/app/forms/endpoints.html @@ -48,8 +48,7 @@

API + Monetization and API Governance (Moesif partnership)

+
+ +
+

Enable the API Monetization module and start generating revenue from your APIs. + The monetization integration + is possible thanks to our partnership with Moesif.

+
+
+
+
+

Check the documentation for more advanced usages + and company identification

+
+
+
+
+ + + + The Collector Application ID is used to send events, actions, users, and companies to Moesif's Collector + API. Moesif provides it under the 'API Keys' section. + +
+
+
+ + Set to true when configuring Moesif for the first time while in development, to + see the activity in the logs. Set to false in production. +
+
+
+
+
+
+
+ +
+ +
+ +
+
+ Defines the list of possible headers that can identify a user uniquely. When the + header is Authorization, it automatically extracts the username if it contains an + Authorization: Basic value with no additional configuration. If, on the other hand, you use + tokens and pass an Authorization: Bearer, it will extract the user ID from the JWT claim + defined under user_id_jwt_claim. If there are multiple headers in the list, all of them are + tested in the given order, and the first existing header in the list is used to extract the user ID + (successfully or not). + +
+
+ + + + When using JWT tokens, it defines which claim contains the user ID. + +
+
+
+ +
+
+ \ No newline at end of file