Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Notification Template API] Add Notification Template API Resource #5784

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if this is or operation or and operation

</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
Loading