Skip to content

Commit

Permalink
Merge pull request #377 from ArpithaSureshappa/patch-8
Browse files Browse the repository at this point in the history
content-partner apis added
  • Loading branch information
Haritest authored Jul 29, 2024
2 parents e65cca9 + a0ac125 commit 0b25a60
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 @@ -131,6 +131,7 @@ comp_area_prefix : /competencyArea
comp_theme_prefix : /competencyTheme
comp_sub_theme_prefix : /competencySubTheme
org_prefix : /org
contentpartner_prefix: /contentpartner


# Service URLs
Expand Down Expand Up @@ -16505,3 +16506,93 @@ kong_apis:
- name: request-size-limiting
config.allowed_payload_size: "{{ small_request_size_limit }}"

- name: partnerCreate
uris: "{{ contentpartner_prefix }}/v1/create"
upstream_url: "{{ cb_pores_service_url }}/contentpartner/v1/create"
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: partnerUpdate
uris: "{{ contentpartner_prefix }}/v1/update"
upstream_url: "{{ cb_pores_service_url }}/contentpartner/v1/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: partnerRead
uris: "{{ contentpartner_prefix }}/v1/read"
upstream_url: "{{ cb_pores_service_url }}/contentpartner/v1/read"
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: partnerSearch
uris: "{{ contentpartner_prefix }}/v1/search"
upstream_url: "{{ cb_pores_service_url }}/contentpartner/v1/search"
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: partnerDelete
uris: "{{ contentpartner_prefix }}/v1/delete"
upstream_url: "{{ cb_pores_service_url }}/contentpartner/v1/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 }}"

0 comments on commit 0b25a60

Please sign in to comment.