Skip to content

Commit 366e194

Browse files
committed
Release 20210106
1 parent fa56aa7 commit 366e194

File tree

170 files changed

+3590
-737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+3590
-737
lines changed

apis/cdn/cdn-api-process-apis/.metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.9",
2+
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.10",
33
"name": "CDN Zones",
44
"description": "Extend your eCDN beyond Business Manager configuration.",
55
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
66
"assetId": "cdn-api-process-apis",
7-
"version": "1.0.9",
7+
"version": "1.0.10",
88
"categories": {
99
"API layer": [
1010
"Process"

apis/cdn/cdn-api-process-apis/cdnapi-process-api.raml

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ baseUriParameters:
1313
mediaType: application/json
1414

1515
uses:
16-
ApiStandards: /exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.6/api-standards.raml
17-
CommerceCloudStandards: /exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/commerce-cloud-standards/1.0.12/commerce-cloud-standards.raml
16+
ApiStandards: /exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.12/api-standards.raml
17+
CommerceCloudStandards: /exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/commerce-cloud-standards/1.0.17/commerce-cloud-standards.raml
1818

1919
types:
2020

@@ -80,10 +80,6 @@ traits:
8080
hasResourceNotFoundResponse: !include traits/HasResourceNotFoundResponse.raml
8181
hasBadRequestResponse: !include traits/HasBadRequestResponse.raml
8282
hasConflictResponse: !include traits/HasConflictResponse.raml
83-
84-
securedBy:
85-
- CommerceCloudStandards.BearerToken
86-
- CommerceCloudStandards.AmOAuth2
8783

8884
/organizations/{organizationId}:
8985
type: CommerceCloudStandards.Organization
@@ -102,6 +98,9 @@ securedBy:
10298
application/json:
10399
type: ZonesEnvelope
104100
example: !include /examples/zone/zones-get-response.raml
101+
securedBy:
102+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
103+
- CommerceCloudStandards.AmOAuth2
105104

106105
/zones/{zoneId}/waf/groups:
107106
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
@@ -117,6 +116,9 @@ securedBy:
117116
application/json:
118117
type: WafGroupsEnvelope
119118
example: !include /examples/waf/wafgroups-get-response.raml
119+
securedBy:
120+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
121+
- CommerceCloudStandards.AmOAuth2
120122

121123
/{groupId}:
122124
put:
@@ -134,6 +136,9 @@ securedBy:
134136
application/json:
135137
type: WafGroupEnvelope
136138
example: !include /examples/waf/wafgroup-put-response.raml
139+
securedBy:
140+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
141+
- CommerceCloudStandards.AmOAuth2
137142

138143
/zones/{zoneId}/waf/rules:
139144
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
@@ -155,6 +160,9 @@ securedBy:
155160
application/json:
156161
type: WafRulesEnvelope
157162
example: !include /examples/waf/wafrules-get-response.raml
163+
securedBy:
164+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
165+
- CommerceCloudStandards.AmOAuth2
158166
/{ruleId}:
159167
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
160168
get:
@@ -168,6 +176,9 @@ securedBy:
168176
application/json:
169177
type: WafRuleEnvelope
170178
example: !include /examples/waf/wafrule-get-response.raml
179+
securedBy:
180+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
181+
- CommerceCloudStandards.AmOAuth2
171182
put:
172183
is: [hasBadRequestResponse]
173184
displayName: updateWafRule
@@ -183,6 +194,9 @@ securedBy:
183194
application/json:
184195
type: WafRuleEnvelope
185196
example: !include /examples/waf/wafrule-put-response.raml
197+
securedBy:
198+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
199+
- CommerceCloudStandards.AmOAuth2
186200

187201
/zones/{zoneId}/firewall/rules:
188202
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
@@ -197,6 +211,9 @@ securedBy:
197211
application/json:
198212
type: FirewallRulesEnvelope
199213
example: !include /examples/firewall/firewall-rules-get-response.raml
214+
securedBy:
215+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
216+
- CommerceCloudStandards.AmOAuth2
200217

201218
post:
202219
is: [hasBadRequestResponse, hasConflictResponse]
@@ -214,6 +231,9 @@ securedBy:
214231
application/json:
215232
type: FirewallRuleEnvelope
216233
example: !include /examples/firewall/firewall-rules-post-response.raml
234+
securedBy:
235+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
236+
- CommerceCloudStandards.AmOAuth2
217237

218238
/{firewallRuleId}:
219239
is: [hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
@@ -228,6 +248,9 @@ securedBy:
228248
application/json:
229249
type: FirewallRuleEnvelope
230250
example: !include /examples/firewall/firewall-rule-get-response.raml
251+
securedBy:
252+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
253+
- CommerceCloudStandards.AmOAuth2
231254
put:
232255
is: [hasBadRequestResponse]
233256
displayName: updateFirewallRule
@@ -244,6 +267,9 @@ securedBy:
244267
application/json:
245268
type: FirewallRuleEnvelope
246269
example: !include /examples/firewall/firewall-rules-put-response.raml
270+
securedBy:
271+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
272+
- CommerceCloudStandards.AmOAuth2
247273

248274
delete:
249275
is: [hasResourceNotFoundResponse]
@@ -252,6 +278,9 @@ securedBy:
252278
responses:
253279
'204':
254280
description: Successfully deleted the firewall rule specified by the caller.
281+
securedBy:
282+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
283+
- CommerceCloudStandards.AmOAuth2
255284

256285
/zones/{zoneId}/speed-settings:
257286
is: [hasResourceNotFoundResponse, hasUnauthorizedResponse, hasForbiddenAccessResponse, hasInternalServerErrorResponse]
@@ -265,6 +294,9 @@ securedBy:
265294
application/json:
266295
type: SpeedSettingsEnvelope
267296
example: !include /examples/zone/speed-settings-response.raml
297+
securedBy:
298+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones, sfcc.cdn-zones.rw ] }
299+
- CommerceCloudStandards.AmOAuth2
268300
patch:
269301
is: [hasBadRequestResponse]
270302
displayName: updateSpeedSettings
@@ -282,4 +314,7 @@ securedBy:
282314
application/json:
283315
type: SpeedSettingsEnvelope
284316
examples:
285-
response : !include /examples/zone/speed-settings-response.raml
317+
response : !include /examples/zone/speed-settings-response.raml
318+
securedBy:
319+
- CommerceCloudStandards.BearerToken: { scopes: [ sfcc.cdn-zones.rw ] }
320+
- CommerceCloudStandards.AmOAuth2

apis/cdn/cdn-api-process-apis/dataTypes/SpeedSetting.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ examples:
1818
brotliCompressionExample:
1919
brotliCompression: on
2020
http2PrioritizationExample:
21-
http2Prioritization: off
21+
http2Prioritization: off

apis/cdn/cdn-api-process-apis/examples/zone/speed-settings-response.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
data:
44
brotliCompression: on
5-
http2Prioritization: on
5+
http2Prioritization: on
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"main":"cdnapi-process-api.raml","name":"CDN API - Process APIs","classifier":"raml","tags":[],"dependencies":[{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"api-standards","version":"1.1.6"},{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"commerce-cloud-standards","version":"1.0.12"}],"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","backwardsCompatible":false,"assetId":"cdn-api-process-apis","version":"1.0.9","apiVersion":"v1","originalFormatVersion":"1.0"}
1+
{"main":"cdnapi-process-api.raml","name":"CDN API - Process APIs","classifier":"raml","tags":[],"dependencies":[{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"api-standards","version":"1.1.12"},{"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","assetId":"commerce-cloud-standards","version":"1.0.17"}],"groupId":"893f605e-10e2-423a-bdb4-f952f56eb6d8","backwardsCompatible":false,"assetId":"cdn-api-process-apis","version":"1.0.10","apiVersion":"v1","originalFormatVersion":"1.0"}

apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.6/api-standards.raml renamed to apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.12/api-standards.raml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ types:
1616
ErrorResponse: !include dataTypes/error-response.raml
1717
Offset: Pagination.offset
1818
Limit: Pagination.limit
19+
Total: Pagination.total
20+
Uuid: Identifiers.UniversallyUniqueIdentifier
21+
AbsoluteUrl: Uri.absoluteUrl
1922

2023
uses:
2124
Pagination: dataTypes/pagination-types.raml
25+
Identifiers: dataTypes/identifers.raml
26+
Uri: dataTypes/uri.raml
2227

2328
traits:
2429
RateLimited: !include traits/rate-limited.raml

apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.6/dataTypes/error-response.raml renamed to apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.12/dataTypes/error-response.raml

File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#%RAML 1.0 Library
2+
usage: Library for types that can act as well described identifers.
3+
4+
types:
5+
UniversallyUniqueIdentifier:
6+
displayName: Uuid
7+
description: A universally unique identifier (UUID) for the purpose of uniquely identifying an object in the system. It is defined as a 128-bit hex encoded string of 32 characters separated into 5 groups in a pattern of `{8-4-4-4-12}` (36 characters total, with the `-` separator).
8+
type: string
9+
pattern: "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
10+
example: 5cb34ffb-2543-4052-aea6-226749e4e478
11+
maxLength: 36
12+
minLength: 36

apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.6/dataTypes/pagination-types.raml renamed to apis/cdn/cdn-api-process-apis/exchange_modules/893f605e-10e2-423a-bdb4-f952f56eb6d8/api-standards/1.1.12/dataTypes/pagination-types.raml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@ types:
88
offset:
99
description: Used to retrieve the results based on a particular resource offset.
1010
type: integer
11+
format: int64
1112
default: 0
1213
minimum: 0
1314
limit:
14-
description: Maximum records to retrieve per request, not to exceed the maximum defined.
15+
description: Maximum records to retrieve per request, not to exceed the maximum defined. A limit must be at least 1 so at least one record is returned (if any match the criteria).
1516
type: integer
16-
default: 10
17+
format: int32
18+
default: 10
19+
minimum: 1
20+
total:
21+
description: The total number of hits that match the search's criteria. This can be greater than the number of results returned as search results are pagenated.
22+
type: integer
23+
format: int64
24+
default: 0
25+
minimum: 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#%RAML 1.0 Library
2+
usage:
3+
URL types with regexes to validate them
4+
types:
5+
absoluteUrl:
6+
description: An absolute URL, beginning with a protocol
7+
type: string
8+
pattern: ^(https?|ftp):\/\/([-\.\w])+(:[\d]+)?(\/[-\w]*)*([-\w\&#\/\?=])*$
9+
examples:
10+
BasicUrl: https://www.salesforce.com
11+
UrlWithParametersAndPort: https://www.salesforce.com:8080/api?detailed=true&lang=en
12+
#To be determined if we will support relative URL
13+
# relativeUrl:
14+
# description: A relative URL, without a protocol or domain. It may or may not begin with a leading `/`
15+
# type: string
16+
# pattern: ^/?(\/[-\w]*)*([-\w&#\/\?=])*$

0 commit comments

Comments
 (0)