Skip to content

Commit b5fec4f

Browse files
committed
Updated API from documentation release
1 parent 89eb523 commit b5fec4f

8 files changed

Lines changed: 139 additions & 50 deletions

File tree

api-specs/api/resources/as-associate.raml

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ type: base
780780
description: A quote holds the negotiated offer.
781781
get:
782782
displayName: Query Quotes in BusinessUnit as Associate
783+
description: Retrieves all Quotes in a BusinessUnit.
783784
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
784785
responses:
785786
200:
@@ -788,8 +789,8 @@ type: base
788789
example: !include ../examples/quotes.example.json
789790
head:
790791
displayName: Check if Quote exists in BusinessUnit by Query Predicate as Associate
792+
description: Checks if one or more Quotes exist for the provided query predicate in a BusinessUnit. Returns a `200 OK` status if any Quotes match the query predicate, or a [Not Found](/../api/errors#404-not-found) error otherwise.
791793
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
792-
description: Checks if one or more Quotes exist for the provided query predicate. Returns a `200` status if any Quotes match the query predicate, or a `404` status otherwise.
793794
queryParameters:
794795
where?:
795796
type: QueryPredicate[]
@@ -802,23 +803,25 @@ type: base
802803
resourceUpdateType: QuoteUpdate
803804
get:
804805
displayName: Get Quote in BusinessUnit by Key as Associate
805-
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
806806
description: |
807+
Retrieves a Quote with the provided `key` in a BusinessUnit.
807808
If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
809+
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
808810
responses:
809811
200:
810812
body:
811813
application/json:
812814
example: !include ../examples/quote.example.json
813815
head:
814816
displayName: Check if Quote exists in BusinessUnit by Key as Associate
817+
description: Checks if a Quote exists with the provided `key` in a BusinessUnit. Returns a `200 OK` status if the Quote exists, or a [Not Found](/../api/errors#404-not-found) error otherwise.
815818
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
816-
description: Checks if a Quote exists with the provided `key`. Returns a `200` status if the Quote exists, or a `404` status otherwise.
817819
post:
818820
displayName: Update Quote in BusinessUnit by Key as Associate
819-
securedBy: [oauth_2_0: { scopes: ['manage_quotes:{projectKey}'] }]
820821
description: |
822+
Updates a Quote in a BusinessUnit using one or more [update actions](/../api/projects/quotes#update-actions).
821823
If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
824+
securedBy: [oauth_2_0: { scopes: ['manage_quotes:{projectKey}'] }]
822825
body:
823826
application/json:
824827
example: !include ../examples/quote-update.example.json
@@ -836,23 +839,25 @@ type: base
836839
resourceUpdateType: QuoteUpdate
837840
get:
838841
displayName: Get Quote in BusinessUnit by ID as Associate
839-
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
840842
description: |
843+
Retrieves a Quote with the provided `id` in a BusinessUnit.
841844
If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
845+
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
842846
responses:
843847
200:
844848
body:
845849
application/json:
846850
example: !include ../examples/quote.example.json
847851
head:
848852
displayName: Check if Quote exists in BusinessUnit by ID as Associate
853+
description: Checks if a Quote exists with the provided `id` in a BusinessUnit. Returns a `200 OK` status if the Quote exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
849854
securedBy: [oauth_2_0: { scopes: ['view_quotes:{projectKey}'] }]
850-
description: Checks if a Quote exists with the provided `id`. Returns a `200` status if the Quote exists, or a `404` status otherwise.
851855
post:
852856
displayName: Update Quote in BusinessUnit by ID as Associate
853-
securedBy: [oauth_2_0: { scopes: ['manage_quotes:{projectKey}'] }]
854857
description: |
858+
Updates a Quote in a BusinessUnit using one or more [update actions](/../api/projects/quotes#update-actions).
855859
If the Quote exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
860+
securedBy: [oauth_2_0: { scopes: ['manage_quotes:{projectKey}'] }]
856861
body:
857862
application/json:
858863
example: !include ../examples/quote-update.example.json
@@ -874,6 +879,7 @@ type: base
874879
(createable): QuoteRequestDraft
875880
get:
876881
displayName: Query QuoteRequests in BusinessUnit as Associate
882+
description: Retrieves all QuoteRequests in a BusinessUnit.
877883
securedBy: [oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
878884
responses:
879885
200:
@@ -882,18 +888,18 @@ type: base
882888
example: !include ../examples/quote-requests.example.json
883889
head:
884890
displayName: Check if QuoteRequest exists in BusinessUnit by Query Predicate as Associate
891+
description: Checks if one or more QuoteRequests exist for the provided query predicate in a BusinessUnit. Returns a `200 OK` status if any QuoteRequests match the query predicate, or a [Not Found](/../api/errors#404-not-found) error otherwise.
885892
securedBy: [oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
886-
description: Checks if one or more QuoteRequests exist for the provided query predicate. Returns a `200` status if any QuoteRequests match the query predicate, or a `404` status otherwise.
887893
queryParameters:
888894
where?:
889895
type: QueryPredicate[]
890896
post:
891897
displayName: Create QuoteRequest in BusinessUnit as Associate
898+
description: |
899+
Creates a QuoteRequest in a BusinessUnit.
900+
Creating QuoteRequest fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
892901
securedBy:
893902
[oauth_2_0: { scopes: ['manage_quote_requests:{projectKey}'] }]
894-
description:
895-
Creates a QuoteRequest in a [BusinessUnit](ctp:api:type:BusinessUnit).
896-
Creating QuoteRequest fails with an [InvalidOperation](ctp:api:type:InvalidOperationError) if the Cart does not reference the same BusinessUnit as the `businessUnitKey` path parameter.
897903
body:
898904
application/json:
899905
example: !include ../examples/quote-request-create.example.json
@@ -911,26 +917,28 @@ type: base
911917
resourceUpdateType: QuoteRequestUpdate
912918
get:
913919
displayName: Get QuoteRequest in BusinessUnit by Key as Associate
914-
securedBy:
915-
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
916920
description: |
921+
Retrieves a QuoteRequest with the provided `key` in a BusinessUnit.
917922
If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
923+
securedBy:
924+
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
918925
responses:
919926
200:
920927
body:
921928
application/json:
922929
example: !include ../examples/quote-request.example.json
923930
head:
924931
displayName: Check if QuoteRequest exists in BusinessUnit by Key as Associate
932+
description: Checks if a QuoteRequest exists with the provided `key` in a BusinessUnit. Returns a `200 OK` status if the QuoteRequest exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
925933
securedBy:
926934
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
927-
description: Checks if a QuoteRequest exists with the provided `key`. Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
928935
post:
929936
displayName: Update QuoteRequest in BusinessUnit by Key as Associate
930-
securedBy:
931-
[oauth_2_0: { scopes: ['manage_quote_requests:{projectKey}'] }]
932937
description: |
938+
Updates a QuoteRequest in a BusinessUnit using one or more [update actions](/../api/projects/quote-requests#update-actions).
933939
If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
940+
securedBy:
941+
[oauth_2_0: { scopes: ['manage_quote_requests:{projectKey}'] }]
934942
body:
935943
application/json:
936944
example: !include ../examples/quote-request-update.example.json
@@ -948,26 +956,28 @@ type: base
948956
resourceUpdateType: QuoteRequestUpdate
949957
get:
950958
displayName: Get QuoteRequest in BusinessUnit by ID as Associate
951-
securedBy:
952-
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
953959
description: |
960+
Retrieves a QuoteRequest with the provided `id` in a BusinessUnit.
954961
If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
962+
securedBy:
963+
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
955964
responses:
956965
200:
957966
body:
958967
application/json:
959968
example: !include ../examples/quote-request.example.json
960969
head:
961970
displayName: Check if QuoteRequest exists in BusinessUnit by ID as Associate
971+
description: Checks if a QuoteRequest exists with the provided `id` in a BusinessUnit. Returns a `200 OK` status if the QuoteRequest exists or a [Not Found](/../api/errors#404-not-found) error otherwise.
962972
securedBy:
963973
[oauth_2_0: { scopes: ['view_quote_requests:{projectKey}'] }]
964-
description: Checks if a QuoteRequest exists with the provided `id`. Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
965974
post:
966975
displayName: Update QuoteRequest in BusinessUnit by ID as Associate
967-
securedBy:
968-
[oauth_2_0: { scopes: ['manage_quote_requests:{projectKey}'] }]
969976
description: |
977+
Updates a QuoteRequest in a BusinessUnit using one or more [update actions](/../api/projects/quote-requests#update-actions).
970978
If the QuoteRequest exists in the [Project](ctp:api:type:Project) but does not reference the requested [BusinessUnit](ctp:api:type:BusinessUnit), this method returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
979+
securedBy:
980+
[oauth_2_0: { scopes: ['manage_quote_requests:{projectKey}'] }]
971981
body:
972982
application/json:
973983
example: !include ../examples/quote-request-update.example.json

api-specs/api/resources/in-store/quote-requests-in-store.raml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type:
1111
description: A request for a Quote holds product variants and can be ordered.
1212
get:
1313
displayName: Query QuoteRequests in Store
14+
description: Retrieves QuoteRequests in a [Store](ctp:api:type:Store).
1415
securedBy:
1516
[
1617
oauth_2_0:
@@ -40,13 +41,13 @@ head:
4041
],
4142
},
4243
]
43-
description: Checks if one or more QuoteRequests exist for the provided query predicate. Returns a `200` status if any QuoteRequests match the query predicate, or a `404` status otherwise.
44+
description: Checks if one or more QuoteRequests exist for the provided query predicate in a [Store](ctp:api:type:Store). Returns a `200` status if any QuoteRequests match the query predicate, or a `404` status otherwise.
4445
queryParameters:
4546
where?:
4647
type: QueryPredicate[]
4748
post:
4849
displayName: Create QuoteRequest in Store
49-
description: |
50+
description: Creates a QuoteRequest in a [Store](ctp:api:type:Store).
5051
securedBy:
5152
[
5253
oauth_2_0:
@@ -75,6 +76,7 @@ post:
7576
resourceUpdateType: QuoteRequestUpdate
7677
get:
7778
displayName: Get QuoteRequest in Store by Key
79+
description: Retrieves a QuoteRequest with the provided `key` in a [Store](ctp:api:type:Store).
7880
securedBy:
7981
[
8082
oauth_2_0:
@@ -93,6 +95,7 @@ post:
9395
example: !include ../../examples/quote-request.example.json
9496
head:
9597
displayName: Check if QuoteRequest exists in Store by Key
98+
description: Checks if a QuoteRequest exists with the provided `key` in a [Store](ctp:api:type:Store). Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
9699
securedBy:
97100
[
98101
oauth_2_0:
@@ -104,9 +107,9 @@ post:
104107
],
105108
},
106109
]
107-
description: Checks if a QuoteRequest exists with the provided `key`. Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
108110
post:
109111
displayName: Update QuoteRequest in Store by Key
112+
description: Updates a QuoteRequest in a [Store](ctp:api:type:Store).
110113
securedBy:
111114
[
112115
oauth_2_0:
@@ -128,6 +131,7 @@ post:
128131
example: !include ../../examples/quote-request-update-response.example.json
129132
delete:
130133
displayName: Delete QuoteRequest in Store by Key
134+
description: Deletes a QuoteRequest in a [Store](ctp:api:type:Store).
131135
is:
132136
- dataErasure
133137
securedBy:
@@ -155,6 +159,7 @@ post:
155159
resourceUpdateType: QuoteRequestUpdate
156160
get:
157161
displayName: Get QuoteRequest in Store by ID
162+
description: Retrieves a QuoteRequest with the provided `id` in a [Store](ctp:api:type:Store).
158163
securedBy:
159164
[
160165
oauth_2_0:
@@ -173,6 +178,7 @@ post:
173178
example: !include ../../examples/quote-request.example.json
174179
head:
175180
displayName: Check if QuoteRequest exists in Store by ID
181+
description: Checks if a QuoteRequest exists with the provided `id` in a [Store](ctp:api:type:Store). Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
176182
securedBy:
177183
[
178184
oauth_2_0:
@@ -184,9 +190,9 @@ post:
184190
],
185191
},
186192
]
187-
description: Checks if a QuoteRequest exists with the provided `id`. Returns a `200` status if the QuoteRequest exists, or a `404` status otherwise.
188193
post:
189194
displayName: Update QuoteRequest in Store by ID
195+
description: Updates a QuoteRequest in a [Store](ctp:api:type:Store).
190196
securedBy:
191197
[
192198
oauth_2_0:
@@ -208,6 +214,7 @@ post:
208214
example: !include ../../examples/quote-request-update-response.example.json
209215
delete:
210216
displayName: Delete QuoteRequest in Store by ID
217+
description: Deletes a QuoteRequest in a [Store](ctp:api:type:Store).
211218
is:
212219
- dataErasure
213220
securedBy:

api-specs/api/resources/in-store/quotes-in-store.raml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type:
1111
description: A quote holds the negotiated offer.
1212
get:
1313
displayName: Query Quotes in Store
14+
description: Retrieves Quotes in a [Store](ctp:api:type:Store).
1415
securedBy:
1516
[
1617
oauth_2_0:
@@ -34,12 +35,13 @@ head:
3435
['view_quotes:{projectKey}', 'view_quotes:{projectKey}:{storeKey}'],
3536
},
3637
]
37-
description: Checks if one or more Quotes exist for the provided query predicate. Returns a `200` status if any Quotes match the query predicate, or a `404` status otherwise.
38+
description: Checks if one or more Quotes exist for the provided query predicate in a [Store](ctp:api:type:Store). Returns a `200` status if any Quotes match the query predicate, or a `404` status otherwise.
3839
queryParameters:
3940
where?:
4041
type: QueryPredicate[]
4142
post:
4243
displayName: Create Quote in Store
44+
description: Creates a Quote in a [Store](ctp:api:type:Store).
4345
securedBy:
4446
[
4547
oauth_2_0:
@@ -68,6 +70,7 @@ post:
6870
resourceUpdateType: QuoteUpdate
6971
get:
7072
displayName: Get Quote in Store by Key
73+
description: Retrieves a Quote with the provided `key` in a [Store](ctp:api:type:Store).
7174
securedBy:
7275
[
7376
oauth_2_0:
@@ -86,6 +89,7 @@ post:
8689
example: !include ../../examples/quote.example.json
8790
head:
8891
displayName: Check if Quote exists in Store by Key
92+
description: Checks if a Quote exists with the provided `key` in a [Store](ctp:api:type:Store). Returns a `200` status if the Quote exists, or a `404` status otherwise.
8993
securedBy:
9094
[
9195
oauth_2_0:
@@ -97,9 +101,9 @@ post:
97101
],
98102
},
99103
]
100-
description: Checks if a Quote exists with the provided `key`. Returns a `200` status if the Quote exists, or a `404` status otherwise.
101104
post:
102105
displayName: Update Quote in Store by Key
106+
description: Updates a Quote in a [Store](ctp:api:type:Store).
103107
securedBy:
104108
[
105109
oauth_2_0:
@@ -121,6 +125,7 @@ post:
121125
example: !include ../../examples/quote.example.json
122126
delete:
123127
displayName: Delete Quote in Store by Key
128+
description: Deletes a Quote in a [Store](ctp:api:type:Store).
124129
is:
125130
- dataErasure
126131
securedBy:
@@ -148,6 +153,7 @@ post:
148153
resourceUpdateType: QuoteUpdate
149154
get:
150155
displayName: Get Quote in Store by ID
156+
description: Retrieves a Quote with the provided `id` in a [Store](ctp:api:type:Store).
151157
securedBy:
152158
[
153159
oauth_2_0:
@@ -166,6 +172,7 @@ post:
166172
example: !include ../../examples/quote.example.json
167173
head:
168174
displayName: Check if Quote exists in Store by ID
175+
description: Checks if a Quote exists with the provided `id` in a [Store](ctp:api:type:Store). Returns a `200` status if the Quote exists, or a `404` status otherwise.
169176
securedBy:
170177
[
171178
oauth_2_0:
@@ -177,9 +184,9 @@ post:
177184
],
178185
},
179186
]
180-
description: Checks if a Quote exists with the provided `id`. Returns a `200` status if the Quote exists, or a `404` status otherwise.
181187
post:
182188
displayName: Update Quote in Store by ID
189+
description: Updates a Quote in a [Store](ctp:api:type:Store).
183190
securedBy:
184191
[
185192
oauth_2_0:
@@ -201,6 +208,7 @@ post:
201208
example: !include ../../examples/quote.example.json
202209
delete:
203210
displayName: Delete Quote in Store by ID
211+
description: Deletes a Quote in a [Store](ctp:api:type:Store).
204212
is:
205213
- dataErasure
206214
securedBy:

0 commit comments

Comments
 (0)