Skip to content

Commit af79700

Browse files
committed
REST API Ref: Add responses to DELETE /cart/{identifier}/entry/{entryId}
1 parent d9f10b7 commit af79700

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,28 @@ post:
170170
example: |
171171
application/vnd.ibexa.api.CartEntryUpdate+xml
172172
application/vnd.ibexa.api.CartEntryUpdate+json
173+
Accept:
174+
description: The updated Cart is returned in XML or JSON format.
175+
example: |
176+
application/vnd.ibexa.api.Cart+xml
177+
application/vnd.ibexa.api.Cart+json
173178
body:
174179
application/vnd.ibexa.api.CartEntryUpdate+xml:
175180
type: CartEntryUpdate
176181
application/vnd.ibexa.api.CartEntryUpdate+json:
177182
type: CartEntryUpdateWrapper
183+
responses:
184+
200:
185+
description: OK - return the updated cart
186+
body:
187+
application/vnd.ibexa.api.Cart+xml:
188+
type: Cart
189+
application/vnd.ibexa.api.Cart+json:
190+
type: CartWrapper
191+
401:
192+
description: Error - the user is not authorized to remove an entry from this cart.
193+
404:
194+
description: Error - the identifier doesn't match any cart.
178195
/empty:
179196
post:
180197
displayName: Empty Cart

0 commit comments

Comments
 (0)