Skip to content

Commit

Permalink
Merge pull request #357 from ruksana2808/patch-11
Browse files Browse the repository at this point in the history
Added Kong for designations APIs
  • Loading branch information
sivaprakash123 authored Jul 13, 2024
2 parents ad008e0 + 9619cfb commit 709a9f7
Showing 1 changed file with 112 additions and 0 deletions.
112 changes: 112 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ tenders_prefix: /tenders
mentoring_prefix : /mentoring
mentoring_interface_prefix : /interface
external_enrollment_prefix: /cios-enroll
designation_prefix : /designation


# Service URLs
Expand Down Expand Up @@ -15898,3 +15899,114 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: designationList
uris: "{{ designation_prefix }}/search"
upstream_url: "{{ cb_pores_service_url }}/designation/search"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'courseAccess'
- name: rate-limiting
config.policy: local
config.hour: "{{ large_rate_limit_per_hour }}"
config.hour: "{{ medium_rate_limit_per_hour }}"
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: designationCreate
uris: "{{ designation_prefix }}/create"
upstream_url: "{{ cb_pores_service_url }}/designation/create"
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 }}"

- name: designationUpdate
uris: "{{ designation_prefix }}/update"
upstream_url: "{{ cb_pores_service_url }}/designation/update"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentUpdate'
- 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 }}"

- name: designationDelete
uris: "{{ designation_prefix }}/delete"
upstream_url: "{{ cb_pores_service_url }}/designation/delete"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentUpdate'
- 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 }}"

- name: designationRead
uris: "{{ designation_prefix }}/read"
upstream_url: "{{ cb_pores_service_url }}/designation/read"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'contentAccess'
- 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 }}"

- name: designationUpload
uris: "{{ designation_prefix }}/upload"
upstream_url: "{{ cb_pores_service_url }}/designation/upload"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'orgSuperAdmin'
- 'orgAdmin'
- 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 }}"

0 comments on commit 709a9f7

Please sign in to comment.