@@ -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