Skip to content

Commit 8212293

Browse files
authored
Merge pull request #5590 from NutharaNR/email-template-v2
[bug-fix] Email Templates V2 Management API example issues
2 parents 164ddf1 + d46c406 commit 8212293

File tree

3 files changed

+102
-102
lines changed

3 files changed

+102
-102
lines changed

en/identity-server/7.0.0/docs/apis/restapis/email-templates-v2.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ paths:
6161
- lang: Curl
6262
source: |
6363
curl -X 'GET' \
64-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types' \
65-
'-H ''accept': application/json' \
66-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
64+
'https://localhost:9443/api/server/v2/email/template-types' \
65+
-H 'accept: application/json' \
66+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
6767
post:
6868
tags:
6969
- Email Template Types
@@ -167,9 +167,9 @@ paths:
167167
- lang: Curl
168168
source: |
169169
curl -X 'GET' \
170-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
171-
'-H ''accept': application/json' \
172-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
170+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
171+
-H 'accept: application/json' \
172+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
173173
delete:
174174
tags:
175175
- Email Template Types
@@ -199,9 +199,9 @@ paths:
199199
- lang: Curl
200200
source: |
201201
curl -X 'DELETE' \
202-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
203-
'-H ''accept': application/json' \
204-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
202+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
203+
-H 'accept: application/json' \
204+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
205205
'/email/template-types/{template-type-id}/org-templates':
206206
get:
207207
tags:
@@ -241,9 +241,9 @@ paths:
241241
- lang: Curl
242242
source: |
243243
curl -X 'GET' \
244-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
245-
'-H ''accept': application/json' \
246-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
244+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
245+
-H 'accept: application/json' \
246+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
247247
post:
248248
tags:
249249
- Email Templates
@@ -295,7 +295,7 @@ paths:
295295
- lang: Curl
296296
source: |
297297
curl -X 'POST' \
298-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
298+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
299299
-H 'accept: application/json' \
300300
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
301301
-H 'Content-Type: application/json' \
@@ -346,9 +346,9 @@ paths:
346346
- lang: Curl
347347
source: |
348348
curl -X 'GET' \
349-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
350-
'-H ''accept': application/json' \
351-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
349+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
350+
-H 'accept: application/json' \
351+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
352352
post:
353353
tags:
354354
- Application Email Templates
@@ -402,7 +402,7 @@ paths:
402402
- lang: Curl
403403
source: |
404404
curl -X 'POST' \
405-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
405+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
406406
-H 'accept: application/json' \
407407
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
408408
-H 'Content-Type: application/json' \
@@ -451,9 +451,9 @@ paths:
451451
- lang: Curl
452452
source: |
453453
curl -X 'GET' \
454-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
455-
'-H ''accept': application/json' \
456-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
454+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
455+
-H 'accept: application/json' \
456+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
457457
put:
458458
tags:
459459
- Email Templates
@@ -497,7 +497,7 @@ paths:
497497
- lang: Curl
498498
source: |
499499
curl -X 'PUT' \
500-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
500+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
501501
-H 'accept: application/json' \
502502
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
503503
-H 'Content-Type: application/json' \
@@ -537,9 +537,9 @@ paths:
537537
- lang: Curl
538538
source: |
539539
curl -X 'DELETE' \
540-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
541-
'-H ''accept': application/json' \
542-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
540+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
541+
-H 'accept: application/json' \
542+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
543543
'/email/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}':
544544
get:
545545
tags:
@@ -579,9 +579,9 @@ paths:
579579
- lang: Curl
580580
source: |
581581
curl -X 'GET' \
582-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
583-
'-H ''accept': application/json' \
584-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
582+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
583+
-H 'accept: application/json' \
584+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
585585
put:
586586
tags:
587587
- Application Email Templates
@@ -626,7 +626,7 @@ paths:
626626
- lang: Curl
627627
source: |
628628
curl -X 'PUT' \
629-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
629+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
630630
-H 'accept: application/json' \
631631
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
632632
-H 'Content-Type: application/json' \
@@ -663,17 +663,17 @@ paths:
663663
$ref: '#/components/responses/NotFound'
664664
'500':
665665
$ref: '#/components/responses/ServerError'
666-
x-extension-1:
666+
x-codeSamples:
667667
- lang: Curl
668668
source: |
669669
curl -X 'DELETE' \
670-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
671-
'-H ''accept': application/json' \
672-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
670+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
671+
-H 'accept: application/json' \
672+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
673673
servers:
674-
- url: 'https://localhost:9443/t/{tenant-domain}/api/server/v2'
674+
- url: 'https://{serverUrl}/t/{tenantDomain}/api/server/v2'
675675
variables:
676-
tenant-domain:
676+
tenantDomain:
677677
default: carbon.super
678678
components:
679679
parameters:

en/identity-server/7.1.0/docs/apis/restapis/email-templates-v2.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ paths:
6161
- lang: Curl
6262
source: |
6363
curl -X 'GET' \
64-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types' \
65-
'-H ''accept': application/json' \
66-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
64+
'https://localhost:9443/api/server/v2/email/template-types' \
65+
-H 'accept: application/json' \
66+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
6767
post:
6868
tags:
6969
- Email Template Types
@@ -167,9 +167,9 @@ paths:
167167
- lang: Curl
168168
source: |
169169
curl -X 'GET' \
170-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
171-
'-H ''accept': application/json' \
172-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
170+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
171+
-H 'accept: application/json' \
172+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
173173
delete:
174174
tags:
175175
- Email Template Types
@@ -199,9 +199,9 @@ paths:
199199
- lang: Curl
200200
source: |
201201
curl -X 'DELETE' \
202-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
203-
'-H ''accept': application/json' \
204-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
202+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg' \
203+
-H 'accept: application/json' \
204+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
205205
'/email/template-types/{template-type-id}/org-templates':
206206
get:
207207
tags:
@@ -241,9 +241,9 @@ paths:
241241
- lang: Curl
242242
source: |
243243
curl -X 'GET' \
244-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
245-
'-H ''accept': application/json' \
246-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
244+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
245+
-H 'accept: application/json' \
246+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
247247
post:
248248
tags:
249249
- Email Templates
@@ -295,7 +295,7 @@ paths:
295295
- lang: Curl
296296
source: |
297297
curl -X 'POST' \
298-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
298+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates' \
299299
-H 'accept: application/json' \
300300
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
301301
-H 'Content-Type: application/json' \
@@ -347,9 +347,9 @@ paths:
347347
- lang: Curl
348348
source: |
349349
curl -X 'GET' \
350-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
351-
'-H ''accept': application/json' \
352-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
350+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
351+
-H 'accept: application/json' \
352+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
353353
post:
354354
tags:
355355
- Application Email Templates
@@ -403,7 +403,7 @@ paths:
403403
- lang: Curl
404404
source: |
405405
curl -X 'POST' \
406-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
406+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a' \
407407
-H 'accept: application/json' \
408408
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
409409
-H 'Content-Type: application/json' \
@@ -452,9 +452,9 @@ paths:
452452
- lang: Curl
453453
source: |
454454
curl -X 'GET' \
455-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
456-
'-H ''accept': application/json' \
457-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
455+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
456+
-H 'accept: application/json' \
457+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
458458
put:
459459
tags:
460460
- Email Templates
@@ -498,7 +498,7 @@ paths:
498498
- lang: Curl
499499
source: |
500500
curl -X 'PUT' \
501-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
501+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
502502
-H 'accept: application/json' \
503503
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
504504
-H 'Content-Type: application/json' \
@@ -538,9 +538,9 @@ paths:
538538
- lang: Curl
539539
source: |
540540
curl -X 'DELETE' \
541-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
542-
'-H ''accept': application/json' \
543-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
541+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/org-templates/en_US' \
542+
-H 'accept: application/json' \
543+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
544544
'/email/template-types/{template-type-id}/app-templates/{app-uuid}/{locale}':
545545
get:
546546
tags:
@@ -581,9 +581,9 @@ paths:
581581
- lang: Curl
582582
source: |
583583
curl -X 'GET' \
584-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
585-
'-H ''accept': application/json' \
586-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
584+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
585+
-H 'accept: application/json' \
586+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
587587
put:
588588
tags:
589589
- Application Email Templates
@@ -628,7 +628,7 @@ paths:
628628
- lang: Curl
629629
source: |
630630
curl -X 'PUT' \
631-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
631+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
632632
-H 'accept: application/json' \
633633
-H 'Authorization: Basic YWRtaW46YWRtaW4=' \
634634
-H 'Content-Type: application/json' \
@@ -665,17 +665,17 @@ paths:
665665
$ref: '#/components/responses/NotFound'
666666
'500':
667667
$ref: '#/components/responses/ServerError'
668-
x-extension-1:
668+
x-codeSamples:
669669
- lang: Curl
670670
source: |
671671
curl -X 'DELETE' \
672-
'https://localhost:9443/t/carbon.super/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
673-
'-H ''accept': application/json' \
674-
'-H ''Authorization': Basic YWRtaW46YWRtaW4='
672+
'https://localhost:9443/api/server/v2/email/template-types/YWNjb3VudGNvbmZpcm1hdGlvbg/app-templates/351262e3-1331-498a-bf2b-344b451ebb3a/en_US' \
673+
-H 'accept: application/json' \
674+
-H 'Authorization: Basic YWRtaW46YWRtaW4='
675675
servers:
676-
- url: 'https://localhost:9443/t/{tenant-domain}/api/server/v2'
676+
- url: 'https://{serverUrl}/t/{tenantDomain}/api/server/v2'
677677
variables:
678-
tenant-domain:
678+
tenantDomain:
679679
default: carbon.super
680680
components:
681681
parameters:

0 commit comments

Comments
 (0)