Skip to content

Commit b82d11e

Browse files
committed
REST API Ref: Add responses to PATCH /cart/{identifier}
1 parent bc7f8b8 commit b82d11e

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
@@ -85,7 +85,7 @@ post:
8585
401:
8686
description: Error - the user is not authorized to get this cart.
8787
404:
88-
description: Error - The identifier do not match any Cart.
88+
description: Error - the identifier do not match any cart.
8989
delete:
9090
displayName: Delete Cart
9191
description: Deletes Cart by its identifier.
@@ -98,11 +98,32 @@ post:
9898
example: |
9999
application/vnd.ibexa.api.CartMetadataUpdate+xml
100100
application/vnd.ibexa.api.CartMetadataUpdate+json
101+
Accept:
102+
description: The Cart is returned in XML or JSON format.
103+
example: |
104+
application/vnd.ibexa.api.Cart+xml
105+
application/vnd.ibexa.api.Cart+json
101106
body:
102107
application/vnd.ibexa.api.CartMetadataUpdate+xml:
103108
type: CartMetadataUpdate
104109
application/vnd.ibexa.api.CartMetadataUpdate+json:
105110
type: CartMetadataUpdateWrapper
111+
responses:
112+
200:
113+
description: OK - return the updated cart
114+
body:
115+
application/vnd.ibexa.api.Cart+xml:
116+
type: Cart
117+
example: !include examples/cart/POST/Cart.xml.example
118+
application/vnd.ibexa.api.Cart+json:
119+
type: CartWrapper
120+
example: !include examples/cart/POST/Cart.json.example
121+
400:
122+
description: Error - the input doesn't match the input schema definition.
123+
401:
124+
description: Error - the user is not authorized to update this cart.
125+
404:
126+
description: Error - the identifier doesn't match any cart.
106127
/entry:
107128
post:
108129
displayName: Add Entry to Cart

0 commit comments

Comments
 (0)