Skip to content

Commit

Permalink
Merge pull request #5784 from RushanNanayakkara/ft_notification_templ…
Browse files Browse the repository at this point in the history
…ate_api

[Notification Template API] Add Notification Template API Resource
  • Loading branch information
RushanNanayakkara authored Oct 23, 2024
2 parents bb13501 + 18ea2ee commit e0046b0
Show file tree
Hide file tree
Showing 4 changed files with 120 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,29 @@
description="View email templates and types in the organization"/>
</Scopes>
</APIResource>
<APIResource name="Notification Template Management API"
identifier="/api/server/v(.*)/notification/(?:email|sms)/template-types" requiresAuthorization="true"
description="API representation of the Notification Template Management API" type="TENANT">
<Scopes>
<Scope displayName="View Notification Template" name="internal_template_mgt_view"
description="View notification templates and types in the organization (root)"/>
<Scope displayName="Create Notification Template" name="internal_template_mgt_create"
description="Create new notification templates and types in the organization (root)"/>
<Scope displayName="Update Notification Template" name="internal_template_mgt_update"
description="Update notification templates and types in the organization (root)"/>
<Scope displayName="Delete Notification Template" name="internal_template_mgt_delete"
description="Delete notification templates and types in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Notification Template Management API"
identifier="/o/api/server/v(.*)/notification/(?:email|sms)/template-types" requiresAuthorization="true"
description="API representation of the Notification Template Management API"
type="CONSOLE_ORG_LEVEL">
<Scopes>
<Scope displayName="View Notification Template" name="internal_org_template_mgt_view"
description="View notification templates and types in the organization"/>
</Scopes>
</APIResource>
<APIResource name="Entitlement Management API" identifier="/api/identity/entitlement/"
requiresAuthorization="true"
description="API representation of the Entitlement Management API" type="TENANT">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,29 @@
description="View email templates and types in the organization"/>
</Scopes>
</APIResource>
<APIResource name="Notification Template Management API"
identifier="/api/server/v(.*)/notification/(?:email|sms)/template-types" requiresAuthorization="true"
description="API representation of the Notification Template Management API" type="TENANT">
<Scopes>
<Scope displayName="View Notification Template" name="internal_template_mgt_view"
description="View notification templates and types in the organization (root)"/>
<Scope displayName="Create Notification Template" name="internal_template_mgt_create"
description="Create new notification templates and types in the organization (root)"/>
<Scope displayName="Update Notification Template" name="internal_template_mgt_update"
description="Update notification templates and types in the organization (root)"/>
<Scope displayName="Delete Notification Template" name="internal_template_mgt_delete"
description="Delete notification templates and types in the organization (root)"/>
</Scopes>
</APIResource>
<APIResource name="Notification Template Management API"
identifier="/o/api/server/v(.*)/notification/(?:email|sms)/template-types" requiresAuthorization="true"
description="API representation of the Notification Template Management API"
type="CONSOLE_ORG_LEVEL">
<Scopes>
<Scope displayName="View Notification Template" name="internal_org_template_mgt_view"
description="View notification templates and types in the organization"/>
</Scopes>
</APIResource>
<APIResource name="Entitlement Management API" identifier="/api/identity/entitlement/"
requiresAuthorization="true"
description="API representation of the Entitlement Management API" type="TENANT">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,43 @@
<Scopes>internal_email_mgt_delete</Scopes>
</Resource>

<!-- [Organization] Notification Template Management API -->
<Resource context="(.*)/o/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_org_email_mgt_view,internal_org_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_org_template_mgt_view</Scopes>
</Resource>

<!-- Notification Template Management API -->
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_email_mgt_view,internal_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="POST">
<Scopes>internal_email_mgt_create,internal_template_mgt_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types/(.*)" secured="true" http-method="PUT">
<Scopes>internal_email_mgt_update,internal_template_mgt_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_email_mgt_delete,internal_template_mgt_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="POST">
<Scopes>internal_template_mgt_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types/(.*)" secured="true" http-method="PUT">
<Scopes>internal_template_mgt_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_template_mgt_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/reset-template-type" secured="true" http-method="POST">
<Scopes>internal_template_mgt_delete</Scopes>
</Resource>

<!-- Keystore Management API -->
<Resource context="(.*)/api/server/v1/keystores/certs/public(.*)" secured="false" http-method="GET"/>
<Resource context="(.*)/api/server/v1/keystores/(.*)" secured="true" http-method="GET">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,43 @@
<Scopes>internal_email_mgt_delete</Scopes>
</Resource>

<!-- [Organization] Notification Template Management API -->
<Resource context="(.*)/o/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_org_email_mgt_view,internal_org_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/o/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_org_template_mgt_view</Scopes>
</Resource>

<!-- Notification Template Management API -->
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_email_mgt_view,internal_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types(.*)" secured="true" http-method="POST">
<Scopes>internal_email_mgt_create,internal_template_mgt_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types/(.*)" secured="true" http-method="PUT">
<Scopes>internal_email_mgt_update,internal_template_mgt_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/email/template-types/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_email_mgt_delete,internal_template_mgt_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="GET">
<Scopes>internal_template_mgt_view</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types(.*)" secured="true" http-method="POST">
<Scopes>internal_template_mgt_create</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types/(.*)" secured="true" http-method="PUT">
<Scopes>internal_template_mgt_update</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/sms/template-types/(.*)" secured="true" http-method="DELETE">
<Scopes>internal_template_mgt_delete</Scopes>
</Resource>
<Resource context="(.*)/api/server/v(.*)/notification/reset-template-type" secured="true" http-method="POST">
<Scopes>internal_template_mgt_delete</Scopes>
</Resource>

<!-- Keystore Management API -->
<Resource context="(.*)/api/server/v1/keystores/certs/public(.*)" secured="false" http-method="GET"/>
<Resource context="(.*)/api/server/v1/keystores/(.*)" secured="true" http-method="GET">
Expand Down

0 comments on commit e0046b0

Please sign in to comment.