From f09aa1a49e031a92e2b0e29dedee7f721eba9a8b Mon Sep 17 00:00:00 2001 From: Jayaprakash8887 Date: Wed, 29 Jun 2022 12:12:14 +0530 Subject: [PATCH 1/4] Issue #SB-30154 feat: Collection Dialcode Link API Refactor LP to KP --- ansible/roles/kong-api/defaults/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 3ae6e47417..ce9771f134 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6019,6 +6019,27 @@ kong_apis: config.required: false config.enabled: false +- name: linkDialcodeCollection + uris: "{{ collection_prefix }}/v1/dialcode/link" + upstream_url: "{{ content_service_url }}/collection/v4/dialcode/link" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - contentCreate + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: opa-checks + config.required: false + config.enabled: false + - name: collectionHierarchyAdd uris: "{{ collection_prefix }}/v1/hierarchy/add" upstream_url: "{{ content_service_url }}/collection/v4/hierarchy/add" From fd7734259e91b839b84f6f25e59771e49f178f34 Mon Sep 17 00:00:00 2001 From: Jayaprakash8887 Date: Wed, 29 Jun 2022 12:23:41 +0530 Subject: [PATCH 2/4] Issue #SB-30154 feat: Collection Dialcode Link API Refactor LP to KP --- ansible/roles/kong-api/defaults/main.yml | 30 ++++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index ce9771f134..2eb914cc36 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6024,21 +6024,21 @@ kong_apis: upstream_url: "{{ content_service_url }}/collection/v4/dialcode/link" strip_uri: true plugins: - - name: jwt - - name: cors - - "{{ statsd_pulgin }}" - - name: acl - config.whitelist: - - contentCreate - - name: rate-limiting - config.policy: local - config.hour: "{{ medium_rate_limit_per_hour }}" - config.limit_by: credential - - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" - - name: opa-checks - config.required: false - config.enabled: false + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - contentCreate + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: opa-checks + config.required: false + config.enabled: false - name: collectionHierarchyAdd uris: "{{ collection_prefix }}/v1/hierarchy/add" From 7de6b5fc0b893377f55f90c64a1a05c20c3bd8a7 Mon Sep 17 00:00:00 2001 From: Jayaprakash8887 Date: Wed, 29 Jun 2022 12:24:41 +0530 Subject: [PATCH 3/4] Issue #SB-30154 feat: Collection Dialcode Link API Refactor LP to KP --- ansible/roles/kong-api/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 2eb914cc36..a94d526c63 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -6029,7 +6029,7 @@ kong_apis: - "{{ statsd_pulgin }}" - name: acl config.whitelist: - - contentCreate + - contentCreate - name: rate-limiting config.policy: local config.hour: "{{ medium_rate_limit_per_hour }}" From 49d198cd6567f10e37e65ec9ba60832f1ae7b164 Mon Sep 17 00:00:00 2001 From: Jayaprakash8887 Date: Thu, 30 Jun 2022 16:03:01 +0530 Subject: [PATCH 4/4] Issue #SB-30154 feat: Collection Dialcode Link API Refactor LP to KP --- .../stack-sunbird/templates/content-service_application.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/stack-sunbird/templates/content-service_application.conf b/ansible/roles/stack-sunbird/templates/content-service_application.conf index e58d3fba5a..3fa42bf23e 100644 --- a/ansible/roles/stack-sunbird/templates/content-service_application.conf +++ b/ansible/roles/stack-sunbird/templates/content-service_application.conf @@ -500,7 +500,7 @@ dial_service { api { base_url : "http://dial-service.{{namespace}}.svc.cluster.local:9000" auth_key : "{{ sunbird_dial_repo_api_key }}" - search : "/dialcode/v1/search" + search : "/dialcode/v3/search" } } content.link_dialcode.validation=true