From 39b09fcd342b78831371c8de75026a18a5d903fa Mon Sep 17 00:00:00 2001 From: ruksana2808 <111083125+ruksana2808@users.noreply.github.com> Date: Wed, 16 Oct 2024 17:11:33 +0530 Subject: [PATCH] Added the kong for comment list API --- ansible/roles/kong-api/defaults/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 5eb15715ec..cd50edd30e 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -18317,3 +18317,21 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: listOfComments + uris: "{{ comment_prefix }}/list" + upstream_url: "{{ cb_comment_service_url }}/comment/list" + 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 }}"