Skip to content

Commit

Permalink
Merge pull request #355 from ArpithaSureshappa/patch-5
Browse files Browse the repository at this point in the history
enrollment api added
  • Loading branch information
sivaprakash123 authored Jul 12, 2024
2 parents a40c4db + 71272b0 commit 146a970
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 @@ -126,6 +126,7 @@ tenders_prefix: /tenders
mentoring_prefix : /mentoring
mentoring_interface_prefix : /interface
designation_prefix: /designation
external_enrollment_prefix: /cios-enroll


# Service URLs
Expand Down Expand Up @@ -168,6 +169,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 @@ -15827,4 +15829,59 @@ kong_apis:
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_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'
- 'contentUpdate'
- 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:
- '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: 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:
- '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 }}"

0 comments on commit 146a970

Please sign in to comment.