Skip to content

Commit bd50579

Browse files
committed
Revert copy operations (as commented)
1 parent 5e6a8a0 commit bd50579

File tree

2 files changed

+64
-67
lines changed

2 files changed

+64
-67
lines changed

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

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,22 @@ displayName: eCommerce API (removed)
3737
example: !include examples/commerce/basket/Basket.json.example
3838

3939
/{basketId}:
40-
# TODO: revert to copy
41-
post:
42-
displayName: Copy basket to user session (removed)
43-
description: |-
44-
Adds basket lines into current basket in user session, if any, using basket stored in permanent storage.
45-
Removed as of Ibexa DXP 4.4.
46-
responses:
47-
200:
48-
body:
49-
application/vnd.ibexa.api.Basket+json:
50-
type: BasketWrapper
51-
example: !include examples/commerce/basket/Basket.json.example
52-
400:
53-
body:
54-
application/vnd.ibexa.api.ValidationResponse+json:
55-
type: ValidationResponseWrapper
56-
example: !include examples/commerce/basket/current/copyfrom/_basket_id_/POST/ValidationResponse.json.example
40+
# copy:
41+
# displayName: Copy basket to user session (removed)
42+
# description: |-
43+
# Adds basket lines into current basket in user session, if any, using basket stored in permanent storage.
44+
# Removed as of Ibexa DXP 4.4.
45+
# responses:
46+
# 200:
47+
# body:
48+
# application/vnd.ibexa.api.Basket+json:
49+
# type: BasketWrapper
50+
# example: !include examples/commerce/basket/Basket.json.example
51+
# 400:
52+
# body:
53+
# application/vnd.ibexa.api.ValidationResponse+json:
54+
# type: ValidationResponseWrapper
55+
# example: !include examples/commerce/basket/current/copyfrom/_basket_id_/POST/ValidationResponse.json.example
5756

5857
/referencenumber:
5958
patch:

docs/api/rest_api/rest_api_reference/input/ibexa-content-objects.raml

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -183,32 +183,31 @@ get:
183183
description: Temporary redirect.
184184
404:
185185
description: Error - the resource does not exist.
186-
# TODO: revert to copy
187-
post:
188-
displayName: Create a draft from current version
189-
description: The system creates a new draft as a copy of the current version. COPY or POST with header X-HTTP-Method-Override COPY.
190-
headers:
191-
Accept:
192-
description: If set, the updated version is returned in XML or JSON format.
193-
example: |
194-
application/vnd.ibexa.api.Version+xml
195-
application/vnd.ibexa.api.Version+json
196-
responses:
197-
201:
198-
description: Created
199-
body:
200-
application/vnd.ibexa.api.Version+xml:
201-
type: Version
202-
example: !include examples/content/objects/content_id/currentversion/COPY/Version.xml.example
203-
application/vnd.ibexa.api.Version+json:
204-
type: VersionWrapper
205-
example: !include examples/content/objects/content_id/currentversion/COPY/Version.json.example
206-
401:
207-
description: Error - the user is not authorized to update this content item.
208-
403:
209-
description: Error - the current version is already a draft.
210-
404:
211-
description: Error - the content item was not found.
186+
# copy:
187+
# displayName: Create a draft from current version
188+
# description: The system creates a new draft as a copy of the current version. COPY or POST with header X-HTTP-Method-Override COPY.
189+
# headers:
190+
# Accept:
191+
# description: If set, the updated version is returned in XML or JSON format.
192+
# example: |
193+
# application/vnd.ibexa.api.Version+xml
194+
# application/vnd.ibexa.api.Version+json
195+
# responses:
196+
# 201:
197+
# description: Created
198+
# body:
199+
# application/vnd.ibexa.api.Version+xml:
200+
# type: Version
201+
# example: !include examples/content/objects/content_id/currentversion/COPY/Version.xml.example
202+
# application/vnd.ibexa.api.Version+json:
203+
# type: VersionWrapper
204+
# example: !include examples/content/objects/content_id/currentversion/COPY/Version.json.example
205+
# 401:
206+
# description: Error - the user is not authorized to update this content item.
207+
# 403:
208+
# description: Error - the current version is already a draft.
209+
# 404:
210+
# description: Error - the content item was not found.
212211
/versions:
213212
get:
214213
displayName: List versions
@@ -312,30 +311,29 @@ get:
312311
description: Error - the content ID or version ID does not exist.
313312
412:
314313
description: Error - the current ETag does not match with the one provided in the If-Match header.
315-
# TODO: revert to copy
316-
post:
317-
displayName: Create a draft from a version
318-
description: The system creates a new draft as a copy of the given version. COPY or POST with header X-HTTP-Method-Override COPY.
319-
headers:
320-
Accept:
321-
description: If set, the updated version is returned in XML or JSON format.
322-
example: |
323-
application/vnd.ibexa.api.Version+xml
324-
application/vnd.ibexa.api.Version+json
325-
responses:
326-
201:
327-
description: Created.
328-
body:
329-
application/vnd.ibexa.api.Version+xml:
330-
type: Version
331-
example: !include examples/content/objects/content_id/versions/version_no/COPY/Version.xml.example
332-
application/vnd.ibexa.api.Version+json:
333-
type: VersionWrapper
334-
example: !include examples/content/objects/content_id/versions/version_no/COPY/Version.json.example
335-
401:
336-
description: Error - the user is not authorized to update this content item.
337-
404:
338-
description: Error - the content item was not found.
314+
# copy:
315+
# displayName: Create a draft from a version
316+
# description: The system creates a new draft as a copy of the given version. COPY or POST with header X-HTTP-Method-Override COPY.
317+
# headers:
318+
# Accept:
319+
# description: If set, the updated version is returned in XML or JSON format.
320+
# example: |
321+
# application/vnd.ibexa.api.Version+xml
322+
# application/vnd.ibexa.api.Version+json
323+
# responses:
324+
# 201:
325+
# description: Created.
326+
# body:
327+
# application/vnd.ibexa.api.Version+xml:
328+
# type: Version
329+
# example: !include examples/content/objects/content_id/versions/version_no/COPY/Version.xml.example
330+
# application/vnd.ibexa.api.Version+json:
331+
# type: VersionWrapper
332+
# example: !include examples/content/objects/content_id/versions/version_no/COPY/Version.json.example
333+
# 401:
334+
# description: Error - the user is not authorized to update this content item.
335+
# 404:
336+
# description: Error - the content item was not found.
339337
delete:
340338
displayName: Delete content version
341339
description: Deletes the content version.

0 commit comments

Comments
 (0)