From f33495b48ae38d3d2b05d136ffa0d4e364abc996 Mon Sep 17 00:00:00 2001 From: anudeep-ks Date: Thu, 1 Aug 2024 12:54:44 +0530 Subject: [PATCH] Solution Upload APIs added in Private Kong --- ansible/roles/kong-api/defaults/main.yml | 94 +++++++++++++++++++++++- 1 file changed, 93 insertions(+), 1 deletion(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 34b84f776d..8b983debd8 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -15961,4 +15961,96 @@ kong_apis: 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 + config.allowed_payload_size: "{{ medium_request_size_limit }}" + + - name: surveysampletemplate + uris: "{{ surveys_service_prefix }}/template/api/v1/download/sampleTemplate" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/download/sampleTemplate" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ x_large_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: uploadsurvey + uris: "{{ surveys_service_prefix }}/template/api/v1/upload" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/upload" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ x_large_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: validatesurvey + uris: "{{ surveys_service_prefix }}/template/api/v1/validate" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/validate" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ x_large_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: createsurvey + uris: "{{ surveys_service_prefix }}/template/api/v1/survey/create" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/survey/create" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ x_large_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + + - name: surveygetSolutions + uris: "{{ surveys_service_prefix }}/template/api/v1/survey/getSolutions" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/survey/getSolutions" + strip_uri: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - surveyAccess + - name: rate-limiting + config.policy: local + config.hour: "{{ x_large_rate_limit_per_hour }}" + config.limit_by: credential + - name: request-size-limiting + config.allowed_payload_size: "{{ small_request_size_limit }}" + + \ No newline at end of file