Skip to content

Commit

Permalink
Merge pull request #259 from Sahil-tarento/4.8.13-dev-calendar
Browse files Browse the repository at this point in the history
Adding calender API Details
  • Loading branch information
Haritest authored Apr 12, 2024
2 parents 5ca47c0 + d08b7bb commit 8c1e89f
Showing 1 changed file with 91 additions and 0 deletions.
91 changes: 91 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ programs_service_prefix: /programs
private_ml_core_prefix: /private/mlcore
private_ml_survey_prefix: /private/mlsurvey
open_program_prefix: /openprogram
calendar_prefix: /calendar

# Service URLs
knowledge_mw_service_url: "http://knowledge-mw-service:5000"
Expand Down Expand Up @@ -12694,3 +12695,93 @@ kong_apis:
config.limit_by: credential
- name: request-size-limiting
config.allowed_payload_size: "{{ medium_request_size_limit }}"

- name: createCalendarEvent
uris: "{{ calendar_prefix }}/v4/create"
upstream_url: "{{ content_service_url }}/event/v4/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: readCalendarEvent
uris: "{{ calendar_prefix }}/v4/read"
upstream_url: "{{ content_service_url }}/event/v4/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: updateCalendarEvent
uris: "{{ calendar_prefix }}/v4/update"
upstream_url: "{{ content_service_url }}/event/v4/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: publishCalendarEvent
uris: "{{ calendar_prefix }}/v4/publish"
upstream_url: "{{ content_service_url }}/event/v4/publish"
strip_uri: true
plugins:
- name: jwt
- name: cors
- "{{ statsd_pulgin }}"
- name: acl
config.whitelist:
- 'courseAdmin'
- 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: "{{ small_request_size_limit }}"

- name: retireCalendarEvent
uris: "{{ calendar_prefix }}/v4/retire"
upstream_url: "{{ content_service_url }}/private/event/v4/retire"
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 8c1e89f

Please sign in to comment.