Skip to content

Commit ca3c73b

Browse files
committed
Updated API from documentation release
1 parent a4fd2eb commit ca3c73b

File tree

6 files changed

+44
-6
lines changed

6 files changed

+44
-6
lines changed

api-specs/api/resources/custom-objects.raml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ type:
77
sortExample: createdAt asc
88
description: Store custom JSON values.
99
get:
10+
displayName: Query CustomObjects
1011
(markDeprecated): true
1112
securedBy:
1213
- oauth_2_0:
@@ -23,6 +24,7 @@ get:
2324
application/json:
2425
example: !include ../examples/custom-objects.example.json
2526
head:
27+
displayName: Check if CustomObject exists by Query Predicate
2628
securedBy:
2729
- oauth_2_0:
2830
scopes:
@@ -40,6 +42,7 @@ head:
4042
[Number](ctp:api:type:AttributeNumberType), [Date](ctp:api:type:AttributeDateType),
4143
[Time](ctp:api:type:AttributeTimeType), and [DateTime](ctp:api:type:AttributeDateTimeType) attribute types.
4244
post:
45+
displayName: Create or update CustomObject
4346
securedBy:
4447
- oauth_2_0:
4548
scopes:
@@ -84,6 +87,7 @@ post:
8487
`key` of the [CustomObject](ctp:api:type:CustomObject).
8588
type: base
8689
get:
90+
displayName: Get CustomObject by Container and Key
8791
is:
8892
- expandable
8993
securedBy:
@@ -107,6 +111,7 @@ post:
107111
example: !include ../examples/custom-object.example.json
108112
type: CustomObject
109113
delete:
114+
displayName: Delete CustomObject by Container and Key
110115
is:
111116
- dataErasure
112117
- versioned
@@ -140,6 +145,7 @@ post:
140145
uriParameterName: container
141146
resourceType: CustomObjectPagedQueryResponse
142147
get:
148+
displayName: Query CustomObjects
143149
securedBy:
144150
- oauth_2_0:
145151
scopes:

api-specs/api/resources/extensions.raml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ get:
1616
type: ExtensionPagedQueryResponse
1717
example: !include ../examples/extensions.example.json
1818
head:
19+
displayName: Check if Extension exists by Query Predicate
1920
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
2021
description: Checks if one or more Extensions exist for the provided query predicate. Returns a `200 OK` status if any Extensions match the query predicate, or a `404 Not Found` otherwise.
2122
queryParameters:
@@ -49,7 +50,7 @@ post:
4950
type: string
5051
description: '`key` of the [Extension](ctp:api:type:Extension).'
5152
get:
52-
displayName: Get Extension by key
53+
displayName: Get Extension by Key
5354
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
5455
responses:
5556
200:
@@ -58,10 +59,11 @@ post:
5859
type: Extension
5960
example: !include ../examples/extension.example.json
6061
head:
62+
displayName: Check if Extension exists by Key
6163
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
6264
description: Checks if an Extension exists with the provided `key`. Returns a `200 OK` status if the Extension exists or a `404 Not Found` otherwise.
6365
post:
64-
displayName: Update Extension by key
66+
displayName: Update Extension by Key
6567
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
6668
is:
6769
- conflicting
@@ -77,7 +79,7 @@ post:
7779
type: Extension
7880
example: !include ../examples/extension-update-response.example.json
7981
delete:
80-
displayName: Delete Extension by key
82+
displayName: Delete Extension by Key
8183
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
8284
is:
8385
- versioned
@@ -105,6 +107,7 @@ post:
105107
type: Extension
106108
example: !include ../examples/extension.example.json
107109
head:
110+
displayName: Check if Extension exists by ID
108111
securedBy: [oauth_2_0: { scopes: ['manage_extensions:{projectKey}'] }]
109112
description: Checks if an Extension exists with the provided `id`. Returns a `200 OK` status if the Extension exists or a `404 Not Found` otherwise.
110113
post:

api-specs/api/resources/messages.raml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ description:
99
A message represents a change or an action performed on a resource (like an
1010
Order or a Product).
1111
get:
12+
displayName: Query Messages
1213
description: 'Deprecated OAuth 2.0 Scope: `view_orders:{projectKey}`'
1314
securedBy: [oauth_2_0: { scopes: ['view_messages:{projectKey}'] }]
1415
responses:
@@ -17,6 +18,7 @@ get:
1718
application/json:
1819
example: !include ../examples/messages.example.json
1920
head:
21+
displayName: Check if Message exists by Query Predicate
2022
securedBy: [oauth_2_0: { scopes: ['view_messages:{projectKey}'] }]
2123
description: Checks if one or more Messages exist for the provided query predicate. Returns a `200 OK` status if any Messages match the query predicate, or a `404 Not Found` otherwise.
2224
queryParameters:
@@ -34,6 +36,7 @@ head:
3436
uriParameterName: ID
3537
resourceType: Message
3638
get:
39+
displayName: Get Message by ID
3740
description: 'Deprecated OAuth 2.0 Scope: `view_orders:{projectKey}`'
3841
securedBy: [oauth_2_0: { scopes: ['view_messages:{projectKey}'] }]
3942
responses:
@@ -42,5 +45,6 @@ head:
4245
application/json:
4346
example: !include ../examples/message.example.json
4447
head:
48+
displayName: Check if Message exists by ID
4549
securedBy: [oauth_2_0: { scopes: ['view_messages:{projectKey}'] }]
4650
description: Checks if a Message exists with the provided `id`. Returns a `200 OK` status if the Message exists or a `404 Not Found` otherwise.

api-specs/api/resources/states.raml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ description: |
1313
reviews, and payments in order to define finite state machines reflecting the business logic you'd like to
1414
implement.
1515
get:
16+
displayName: Query States
1617
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
1718
responses:
1819
200:
1920
body:
2021
application/json:
2122
example: !include ../examples/states.example.json
2223
head:
24+
displayName: Check if State exists by Query Predicate
2325
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
2426
description: Checks if one or more States exist for the provided query predicate. Returns a `200 OK` status if any States match the query predicate, or a `404 Not Found` otherwise.
2527
queryParameters:
@@ -31,6 +33,7 @@ head:
3133
[Number](ctp:api:type:AttributeNumberType), [Date](ctp:api:type:AttributeDateType),
3234
[Time](ctp:api:type:AttributeTimeType), and [DateTime](ctp:api:type:AttributeDateTimeType) attribute types.
3335
post:
36+
displayName: Create State
3437
securedBy: [oauth_2_0: { scopes: ['manage_states:{projectKey}'] }]
3538
body:
3639
application/json:
@@ -48,16 +51,19 @@ post:
4851
resourceType: State
4952
resourceUpdateType: StateUpdate
5053
get:
54+
displayName: Get State by Key
5155
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
5256
responses:
5357
200:
5458
body:
5559
application/json:
5660
example: !include ../examples/state.example.json
5761
head:
62+
displayName: Check if State exists by Key
5863
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
5964
description: Checks if a State exists with the provided `key`. Returns a `200 OK` status if the State exists or a `404 Not Found` otherwise.
6065
post:
66+
displayName: Update State by Key
6167
securedBy: [oauth_2_0: { scopes: ['manage_states:{projectKey}'] }]
6268
body:
6369
application/json:
@@ -68,6 +74,7 @@ post:
6874
application/json:
6975
example: !include ../examples/state-update-response.example.json
7076
delete:
77+
displayName: Delete State by Key
7178
securedBy: [oauth_2_0: { scopes: ['manage_states:{projectKey}'] }]
7279
responses:
7380
200:
@@ -82,16 +89,19 @@ post:
8289
resourceType: State
8390
resourceUpdateType: StateUpdate
8491
get:
92+
displayName: Get State by ID
8593
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
8694
responses:
8795
200:
8896
body:
8997
application/json:
9098
example: !include ../examples/state.example.json
9199
head:
100+
displayName: Check if State exists by ID
92101
securedBy: [oauth_2_0: { scopes: ['view_states:{projectKey}'] }]
93102
description: Checks if a State exists with the provided `id`. Returns a `200 OK` status if the State exists or a `404 Not Found` otherwise.
94103
post:
104+
displayName: Update State by ID
95105
securedBy: [oauth_2_0: { scopes: ['manage_states:{projectKey}'] }]
96106
body:
97107
application/json:
@@ -102,6 +112,7 @@ post:
102112
application/json:
103113
example: !include ../examples/state-update-response.example.json
104114
delete:
115+
displayName: Delete State by ID
105116
securedBy: [oauth_2_0: { scopes: ['manage_states:{projectKey}'] }]
106117
responses:
107118
200:

api-specs/api/resources/subscriptions.raml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ get:
1818
type: SubscriptionPagedQueryResponse
1919
example: !include ../examples/subscriptions.example.json
2020
head:
21+
displayName: Check if Subscription exists by Query Predicate
2122
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
2223
description: Checks if one or more Subscriptions exist for the provided query predicate. Returns a `200 OK` status if any Subscriptions match the query predicate, or a `404 Not Found` otherwise.
2324
queryParameters:
@@ -53,7 +54,7 @@ post:
5354
type: string
5455
description: '`key` of the [Subscription](ctp:api:type:Subscription).'
5556
get:
56-
displayName: Get Subscription by key
57+
displayName: Get Subscription by Key
5758
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
5859
responses:
5960
200:
@@ -62,10 +63,11 @@ post:
6263
type: Subscription
6364
example: !include ../examples/subscription.example.json
6465
head:
66+
displayName: Check if Subscription exists by Key
6567
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
6668
description: Checks if a Subscription exists with the provided `key`. Returns a `200 OK` status if the Subscription exists or a `404 Not Found` otherwise.
6769
post:
68-
displayName: Update Subscription by key
70+
displayName: Update Subscription by Key
6971
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
7072
is:
7173
- conflicting
@@ -81,7 +83,7 @@ post:
8183
type: Subscription
8284
example: !include ../examples/subscription-update-response.example.json
8385
delete:
84-
displayName: Delete Subscription by key
86+
displayName: Delete Subscription by Key
8587
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
8688
is:
8789
- versioned
@@ -109,6 +111,7 @@ post:
109111
type: Subscription
110112
example: !include ../examples/subscription.example.json
111113
head:
114+
displayName: Check if Subscription exists by ID
112115
securedBy: [oauth_2_0: { scopes: ['manage_subscriptions:{projectKey}'] }]
113116
description: Checks if a Subscription exists with the provided `id`. Returns a `200 OK` status if the Subscription exists or a `404 Not Found` otherwise.
114117
post:

api-specs/api/resources/types.raml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ type:
1010
(createable): TypeDraft
1111
description: Types define custom fields that are used to enhance resources as you need.
1212
get:
13+
displayName: Query Types
1314
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
1415
responses:
1516
200:
1617
body:
1718
application/json:
1819
example: !include ../examples/types.example.json
1920
head:
21+
displayName: Check if Type exists by Query Predicate
2022
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
2123
description: Checks if one or more Types exist for the provided query predicate. Returns a `200 OK` status if any Types match the query predicate, or a `404 Not Found` otherwise.
2224
queryParameters:
@@ -28,6 +30,7 @@ head:
2830
[Number](ctp:api:type:AttributeNumberType), [Date](ctp:api:type:AttributeDateType),
2931
[Time](ctp:api:type:AttributeTimeType), and [DateTime](ctp:api:type:AttributeDateTimeType) attribute types.
3032
post:
33+
displayName: Create Type
3134
securedBy: [oauth_2_0: { scopes: ['manage_types:{projectKey}'] }]
3235
body:
3336
application/json:
@@ -45,16 +48,19 @@ post:
4548
resourceType: Type
4649
resourceUpdateType: TypeUpdate
4750
get:
51+
displayName: Get Type by Key
4852
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
4953
responses:
5054
200:
5155
body:
5256
application/json:
5357
example: !include ../examples/type.example.json
5458
head:
59+
displayName: Check if Type exists by Key
5560
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
5661
description: Checks if a Type exists with the provided `key`. Returns a `200 OK` status if the Type exists or a `404 Not Found` otherwise.
5762
post:
63+
displayName: Update Type by Key
5864
securedBy: [oauth_2_0: { scopes: ['manage_types:{projectKey}'] }]
5965
body:
6066
application/json:
@@ -65,6 +71,7 @@ post:
6571
application/json:
6672
example: !include ../examples/type-update-response.example.json
6773
delete:
74+
displayName: Delete Type by Key
6875
securedBy: [oauth_2_0: { scopes: ['manage_types:{projectKey}'] }]
6976
responses:
7077
200:
@@ -79,16 +86,19 @@ post:
7986
resourceType: Type
8087
resourceUpdateType: TypeUpdate
8188
get:
89+
displayName: Get Type by ID
8290
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
8391
responses:
8492
200:
8593
body:
8694
application/json:
8795
example: !include ../examples/type.example.json
8896
head:
97+
displayName: Check if Type exists by ID
8998
securedBy: [oauth_2_0: { scopes: ['view_types:{projectKey}'] }]
9099
description: Checks if a Type exists with the provided `id`. Returns a `200 OK` status if the Type exists or a `404 Not Found` otherwise.
91100
post:
101+
displayName: Update Type by ID
92102
securedBy: [oauth_2_0: { scopes: ['manage_types:{projectKey}'] }]
93103
body:
94104
application/json:
@@ -99,6 +109,7 @@ post:
99109
application/json:
100110
example: !include ../examples/type-update-response.example.json
101111
delete:
112+
displayName: Delete Type by ID
102113
securedBy: [oauth_2_0: { scopes: ['manage_types:{projectKey}'] }]
103114
responses:
104115
200:

0 commit comments

Comments
 (0)