Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Backend APIs to Kong API #385

Open
wants to merge 2 commits into
base: dev-4.8.15
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 247 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
upstream_url: "{{ ml_survey_service_url }}/template/api/v1/update/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: 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"
upstream_url: "{{ ml_survey_service_url }}/template/api/v1/validations/update"
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"
upstream_url: "{{ ml_survey_service_url }}/template/api/v1/conditions/update"
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: getsurveyDownloadableUrl
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 }}"