From 237f9af810426cdb89c658340e2c0753e687c890 Mon Sep 17 00:00:00 2001 From: anudeep-ks Date: Wed, 21 Aug 2024 14:44:43 +0530 Subject: [PATCH] Added Backend APIs to Kong API --- ansible/roles/kong-api/defaults/main.yml | 247 +++++++++++++++++++++++ 1 file changed, 247 insertions(+) diff --git a/ansible/roles/kong-api/defaults/main.yml b/ansible/roles/kong-api/defaults/main.yml index 8b983debd8..798109be1f 100644 --- a/ansible/roles/kong-api/defaults/main.yml +++ b/ansible/roles/kong-api/defaults/main.yml @@ -16035,6 +16035,24 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: surveydownloadSolutions + uris: "{{ surveys_service_prefix }}/template/api/v1/survey/downloadSolutions" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/survey/downloadSolutions" + 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" @@ -16053,4 +16071,233 @@ kong_apis: - name: request-size-limiting config.allowed_payload_size: "{{ small_request_size_limit }}" + - name: authenticatesurveySolutions + uris: "{{ surveys_service_prefix }}/template/api/v1/authenticate" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/authenticate" + 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: signupsurveySolutions + uris: "{{ surveys_service_prefix }}/template/api/v1/signup" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/signup" + 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: errorDownloadofsurveySolutions + uris: "{{ surveys_service_prefix }}/template/api/v1/errDownload" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/errDownload" + 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: userRolesList + uris: "{{ surveys_service_prefix }}/template/api/v1/userRoles/list" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/userRoles/list" + 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: surveyaddSampletemplate + uris: "{{ surveys_service_prefix }}template/api/v1/add/sampleTemplate" + upstream_url: "{{ ml_survey_service_url }}template/api/v1/add/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: surveyupdateSampleTemplate + uris: "{{ surveys_service_prefix }}/template/api/v1/update/sampleTemplate/{template_id}" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/update/sampleTemplatbe{template_id}" + 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: uploaduserRoles + uris: "{{ surveys_service_prefix }}/template/api/v1/userRoles/singleUpload" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/userRoles/singleUpload" + 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: listValidations + uris: "{{ surveys_service_prefix }}/template/api/v1/validations/list" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/validations/list" + 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: listConditions + uris: "{{ surveys_service_prefix }}/template/api/v1/conditions/list" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/conditions/list" + 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: updateValidations + uris: "{{ surveys_service_prefix }}/template/api/v1/validations/update/{solution_id}" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/validations/update/{solution_id}" + 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: updateConditions + uris: "{{ surveys_service_prefix }}/template/api/v1/conditions/update/{solution_id}" + upstream_url: "{{ ml_survey_service_url }}/template/api/v1/conditions/update/{solution_id}" + 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: getDownloadableUrl + uris: "{{ surveys_service_prefix }}apiv1/cloud-services/files/getDownloadableUrl" + upstream_url: "{{ ml_survey_service_url }}apiv1/cloud-services/files/getDownloadableUrl" + 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