Skip to content

Commit

Permalink
Merge pull request #358 from ArpithaSureshappa/patch-6
Browse files Browse the repository at this point in the history
cios enrollment api added
  • Loading branch information
sivaprakash123 authored Jul 13, 2024
2 parents df3855d + 7299674 commit ad008e0
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ ciosIntegration_prefix: /ciosIntegration
tenders_prefix: /tenders
mentoring_prefix : /mentoring
mentoring_interface_prefix : /interface
external_enrollment_prefix: /cios-enroll


# Service URLs
Expand Down Expand Up @@ -167,6 +168,7 @@ ml_core_private_url: "http://{{private_ingressgateway_ip}}/ml-core"
cb_pores_service_url : "http://cb-pores-service:7001"
cios_content_service_url : "http://cios-content-service:7001"
mentoring_interface_service_url: "http://mentoring-interface-service:3567"
cb_external_enrollment_service_url: "http://cb-enrollment-service:7002"

premium_consumer_rate_limits:
- api: createContent
Expand Down Expand Up @@ -15841,3 +15843,58 @@ kong_apis:
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: extEnrollmentCreate
uris: "{{ external_enrollment_prefix }}/v1/create"
upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/create"
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: "{{ small_request_size_limit }}"
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: extEnrollmentReadByUserId
uris: "{{ external_enrollment_prefix }}/v1/listbyuserid"
upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/listbyuserid"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'courseAccess'
- 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: extEnrollmentReadByUserIdAndCourseId
uris: "{{ external_enrollment_prefix }}/v1/readby/useridcourseId"
upstream_url: "{{ cb_external_enrollment_service_url }}/cios-enroll/v1/readby/useridcourseId"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'courseAccess'
- 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 ad008e0

Please sign in to comment.