diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8bfbdd36b9..23b061d623 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -14962,7 +14962,7 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" - - name: questionsSetRead + - name: questionsSetReadv1 uris: "{{ mentoring_prefix }}/v1/questionsSet/read" upstream_url: "{{ mentoring_service_url }}/mentoring/v1/questionsSet/read" strip_uri: true @@ -15023,3 +15023,38 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + - name: exploreCourseCreate + uris: "{{ course_service_prefix }}/v1/explore/upsert" + upstream_url: "{{ sb_cb_ext_service_url }}/course/v1/explore/upsert" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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: exploreCourseDelete + uris: "{{ course_service_prefix }}/v1/explore/delete" + upstream_url: "{{ sb_cb_ext_service_url }}/course/v1/explore/delete" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'contentAccess' + - 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