Skip to content

Commit 90ad68d

Browse files
committed
Draft missing cart REST routes
/api/ibexa/v2/cart/{identifier}/validate /api/ibexa/v2/cart/authorize
1 parent 668e148 commit 90ad68d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/api/rest_api/rest_api_reference/input/ibexa-cart.raml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ post:
8888
displayName: Update Cart's metadata
8989
description: Updates identified Cart's metadata from payload.
9090
headers:
91-
Content-Type:
91+
Accept:
9292
description: The CartMetadataUpdate schema encoded in XML or JSON format.
9393
example: |
9494
application/vnd.ibexa.api.CartMetadataUpdate+xml
@@ -165,3 +165,24 @@ post:
165165
description: Error - The user is not authorized to read this Cart.
166166
404:
167167
description: Error - Cart not found.
168+
/validate:
169+
post:
170+
displayName: Cart Validation
171+
description: Validates a Cart against constraints
172+
headers:
173+
Accept:
174+
description: If set, the Cart Constraint Violations are returned in XML or JSON format.
175+
example: |
176+
application/vnd.ibexa.api.CartConstraintViolationList+xml
177+
application/vnd.ibexa.api.CartConstraintViolationList+json
178+
responses:
179+
200:
180+
body:
181+
application/vnd.ibexa.api.CartConstraintViolationList+xml:
182+
type: CartConstraintViolationList
183+
application/vnd.ibexa.api.CartConstraintViolationList+json:
184+
type: CartConstraintViolationListWrapper
185+
/authorize:
186+
post:
187+
displayName: Cart Authorization
188+
description: Return the CSRF token needed by anonymous users to manipulate their Cart

0 commit comments

Comments
 (0)