99
99
application/vnd.ibexa.api.CartMetadataUpdate+xml
100
100
application/vnd.ibexa.api.CartMetadataUpdate+json
101
101
Accept :
102
- description : The Cart is returned in XML or JSON format.
102
+ description : The updated Cart is returned in XML or JSON format.
103
103
example : |
104
104
application/vnd.ibexa.api.Cart+xml
105
105
application/vnd.ibexa.api.Cart+json
@@ -114,10 +114,8 @@ post:
114
114
body :
115
115
application/vnd.ibexa.api.Cart+xml :
116
116
type : Cart
117
- example : !include examples/cart/POST/Cart.xml.example
118
117
application/vnd.ibexa.api.Cart+json :
119
118
type : CartWrapper
120
- example : !include examples/cart/POST/Cart.json.example
121
119
400 :
122
120
description : Error - the input doesn't match the input schema definition.
123
121
401 :
@@ -134,12 +132,31 @@ post:
134
132
example : |
135
133
application/vnd.ibexa.api.CartEntryAdd+xml
136
134
application/vnd.ibexa.api.CartEntryAdd+json
135
+ Accept :
136
+ description : The updated Cart is returned in XML or JSON format.
137
+ example : |
138
+ application/vnd.ibexa.api.Cart+xml
139
+ application/vnd.ibexa.api.Cart+json
137
140
body :
138
141
application/vnd.ibexa.api.CartEntryAdd+xml :
139
142
type : CartEntryAdd
140
143
application/vnd.ibexa.api.CartEntryAdd+json :
141
144
type : CartEntryAddWrapper
142
145
example : !include examples/cart/entry/POST/CartEntryAdd.json.example
146
+ responses :
147
+ 200 :
148
+ description : OK - return the updated cart
149
+ body :
150
+ application/vnd.ibexa.api.Cart+xml :
151
+ type : Cart
152
+ application/vnd.ibexa.api.Cart+json :
153
+ type : CartWrapper
154
+ 400 :
155
+ description : Error - the input doesn't match the input schema definition.
156
+ 401 :
157
+ description : Error - the user is not authorized to add an entry to this cart.
158
+ 404 :
159
+ description : Error - the identifier doesn't match any cart.
143
160
/{entryId} :
144
161
delete :
145
162
displayName : Remove Entry from Cart
0 commit comments