From 88d9f56bbeb153c11f904b942e470b94b7928e82 Mon Sep 17 00:00:00 2001 From: Kumar Gauraw Date: Wed, 12 May 2021 12:48:54 +0530 Subject: [PATCH] Issue #SB-23401 feat: updated script for question list api (#2520) --- ansible/roles/kong-api/defaults/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 9ba8cd9c5d..e4310b9489 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -5978,6 +5978,20 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: questionList + request_path: "{{ question_prefix }}/v1/list" + upstream_url: "{{ assessment_service_url }}/question/v4/list" + strip_request_path: true + plugins: + - name: cors + - "{{ statsd_pulgin }}" + - name: rate-limiting + config.policy: local + config.hour: "{{ medium_rate_limit_per_hour }}" + config.limit_by: ip + - name: request-size-limiting + config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: questionUpdate request_path: "{{ question_prefix }}/v1/update" upstream_url: "{{ assessment_service_url }}/question/v4/update"