From 0a35b63e566e866a2b38a0b8b63abf2c2cc96059 Mon Sep 17 00:00:00 2001 From: SaipradeepR <53404427+SaipradeepR@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:12:20 +0530 Subject: [PATCH] V3 for Enrol API testing in PROD V3 for Enrol API testing in PROD --- ansible/roles/kong-api/defaults/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8af6720b38..6b19bf8f3a 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -2100,6 +2100,23 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" +- name: listCourseEnrollmentsV3 + uris: "{{ course_service_prefix }}/v3/user/enrollment/list" + upstream_url: "{{ lms_service_url }}/v2/user/courses/list" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'courseAccess' + - 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: listDialcodes uris: "{{ dialcode_service_prefix }}/v1/list"