From 7e3c99639a042787889e85b290d25cadaf726fc4 Mon Sep 17 00:00:00 2001 From: Amol Ghatol Date: Fri, 19 Mar 2021 16:35:25 +0530 Subject: [PATCH] Issue #SB-22937 feat: Onboard user list API (#2305) * Issue #SB-22937 feat: Onboard user list API * Issue #SB-22937 feat: Contributor search API --- ansible/roles/kong-api/defaults/main.yml | 32 ++++++++++++++++++------ 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 0b65a100c4..3ad98d933a 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -4716,7 +4716,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: listGroup request_path: "{{ group_service_prefix }}/v1/list" @@ -4734,7 +4734,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: readGroup request_path: "{{ group_service_prefix }}/v1/read" @@ -4932,7 +4932,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: createTenantPreferences request_path: "{{ org_service_prefix }}/v2/preferences/create" @@ -4968,7 +4968,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: readTenantPreferencess request_path: "{{ org_service_prefix }}/v2/preferences/read" @@ -4986,7 +4986,7 @@ kong_apis: config.hour: "{{ medium_rate_limit_per_hour }}" config.limit_by: credential - name: request-size-limiting - config.allowed_payload_size: "{{ small_request_size_limit }}" + config.allowed_payload_size: "{{ small_request_size_limit }}" - name: generateCertificateV2 request_path: "{{ cert_service_prefix }}/v2/certs/generate" @@ -5004,7 +5004,7 @@ 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 }}" + config.allowed_payload_size: "{{ medium_request_size_limit }}" - name: addRegCertificateV2 request_path: "{{ cert_registry_service_prefix }}/v2/certs/add" @@ -5041,7 +5041,7 @@ kong_apis: config.limit_by: credential - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" - + - name: contentImportAPI request_path: "{{ content_prefix }}/v1/import" upstream_url: "{{ content_service_url }}/content/v3/import" @@ -5946,6 +5946,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: contributorSearch + request_path: "{{ program_service_prefix }}/v1/contributor/search" + upstream_url: "{{ program_service_url }}/program/v1/contributor/search" + strip_request_path: true + plugins: + - name: jwt + - name: cors + - "{{ statsd_pulgin }}" + - name: acl + config.whitelist: + - 'userTempAdmin' + - 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: questionCreate request_path: "{{ question_prefix }}/v1/create" upstream_url: "{{ assessment_service_url }}/question/v4/create"