Skip to content

Commit

Permalink
Added new APIs for KarmaQuest interest
Browse files Browse the repository at this point in the history
  • Loading branch information
ruksana2808 authored May 27, 2024
1 parent 0d701c9 commit 88af77a
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions ansible/roles/kong-api/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ calendar_prefix: /calendar
careers_prefix: /careers
demand_prefix: /demand
playlist_prefix: /playList
interest_prefix: /interest

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

- name: interestCreate
uris: "{{ interest_prefix }}/create"
upstream_url: "{{ cb_pores_service_url }}/interest/create"
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: interestRead
uris: "{{ interest_prefix }}/read"
upstream_url: "{{ cb_pores_service_url }}/interest/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: interestSearch
uris: "{{ interest_prefix }}/search"
upstream_url: "{{ cb_pores_service_url }}/interest/search"
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: interestAssign
uris: "{{ interest_prefix }}/assign"
upstream_url: "{{ cb_pores_service_url }}/interest/assign"
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 }}"

0 comments on commit 88af77a

Please sign in to comment.