From cf6b04106fd98de5a458e5533c01e99a79b4c590 Mon Sep 17 00:00:00 2001 From: tarentomaheshvakkund <139739142+tarentomaheshvakkund@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:42:07 +0530 Subject: [PATCH] KB-6528 | DEV | Assessment | BE | Kong and UI-Proxy Integration of the newly added APIS for CQF assessment. 1. Added kong entry --- ansible/roles/kong-api/defaults/main.yml | 56 +++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 44eddbd822..5f0fe4ad86 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -133,7 +133,7 @@ comp_sub_theme_prefix : /competencySubTheme org_prefix : /org contentpartner_prefix: /contentpartner halloffame_prefix: /halloffame - +cqf_questionset_prefix: /cqfquestionset # Service URLs knowledge_mw_service_url: "http://knowledge-mw-service:5000" @@ -17010,3 +17010,57 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: cqfQuestionSetCreate + uris: "{{ cqf_questionset_prefix }}/v2/create" + upstream_url: "{{ assessment_service_url }}/questionset/v4/create" + 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: "{{ medium_request_size_limit }}" + + - name: cqfQuestionSetUpdateHierarchy + uris: "{{ cqf_questionset_prefix }}/v2/hierarchy/update" + upstream_url: "{{ assessment_service_url }}/questionset/v4/hierarchy/update" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentUpdate' + - 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: "{{ medium_request_size_limit }}" + + - name: cqfQuestionSetReview + uris: "{{ cqf_questionset_prefix }}/v2/review" + upstream_url: "{{ assessment_service_url }}/questionset/v4/review" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAdmin' + - 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: "{{ medium_request_size_limit }}" \ No newline at end of file