Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
],
],
requestBody: new Model\RequestBody(
description: 'No payload required',
content: new \ArrayObject(),
),
),
Expand Down
12 changes: 1 addition & 11 deletions src/lib/Server/Controller/Bookmark/BookmarkListController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,9 @@
tags: [
'Bookmark',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the list is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
],
responses: [
Response::HTTP_OK => [
'description' => 'If set, the list is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.BookmarkList+xml' => [
'schema' => [
Expand Down
22 changes: 2 additions & 20 deletions src/lib/Server/Controller/Content/ContentCreateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,8 @@
tags: [
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'Content-Type',
in: 'header',
required: true,
description: 'The ContentCreate schema encoded in XML or JSON format.',
schema: [
'type' => 'string',
],
),
],
requestBody: new Model\RequestBody(
description: 'The ContentCreate schema encoded in XML or JSON format.',
content: new \ArrayObject([
'application/vnd.ibexa.api.ContentCreate+xml' => [
'schema' => [
Expand All @@ -70,6 +51,7 @@
),
responses: [
Response::HTTP_CREATED => [
'description' => 'Content - If set, all information for the content item including the embedded current version is returned in XML or JSON format. ContentInfo - If set, all information for the content item (excluding the current version) is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.Content+xml' => [
'schema' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the updated version is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand Down Expand Up @@ -74,6 +65,7 @@
],
],
requestBody: new Model\RequestBody(
description: 'No payload required',
content: new \ArrayObject(),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the updated version is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand Down Expand Up @@ -77,6 +68,7 @@
],
],
requestBody: new Model\RequestBody(
description: 'No payload required',
content: new \ArrayObject(),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
],
],
requestBody: new Model\RequestBody(
description: 'No payload required',
content: new \ArrayObject(),
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,12 @@
new Model\Parameter(
name: 'If-None-Match',
in: 'header',
required: true,
required: false,
description: 'Only return the version if the given ETag is the not current one, otherwise a 304 is returned.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the version list is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -64,6 +55,7 @@
],
responses: [
Response::HTTP_OK => [
'description' => 'If set, the version list is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.Version+xml' => [
'schema' => [
Expand All @@ -80,7 +72,7 @@
],
],
Response::HTTP_NOT_MODIFIED => [
'description' => 'Error - the ETag does not match the current one.',
'description' => 'Not Modified - the ETag matches the current one.',
],
Response::HTTP_UNAUTHORIZED => [
'description' => 'Error - the user is not authorized to read this content item.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, all information for the content item (excluding the current version) is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'If-match',
in: 'header',
Expand All @@ -46,15 +37,6 @@
'type' => 'string',
],
),
new Model\Parameter(
name: 'Content-Type',
in: 'header',
required: true,
description: 'The ContentUpdate schema encoded in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -65,6 +47,7 @@
),
],
requestBody: new Model\RequestBody(
description: 'The ContentUpdate schema encoded in XML or JSON format.',
content: new \ArrayObject([
'application/vnd.ibexa.api.ContentUpdate+xml' => [
'schema' => [
Expand All @@ -75,12 +58,12 @@
'schema' => [
'$ref' => '#/components/schemas/ContentInfoWrapper',
],
'x-ibexa-example-file' => '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/PATCH/ContentInfo.xml.example',
],
]),
),
responses: [
Response::HTTP_OK => [
'description' => 'If set, all information for the content item (excluding the current version) is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.ContentInfo+xml' => [
'schema' => [
Expand All @@ -91,7 +74,6 @@
'schema' => [
'$ref' => '#/components/schemas/ContentInfoWrapper',
],
'x-ibexa-example-file' => '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/PATCH/ContentInfo.xml.example',
],
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the updated version is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'Content-Type',
in: 'header',
required: true,
description: 'The RelationCreate schema encoded in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -67,6 +49,7 @@
),
],
requestBody: new Model\RequestBody(
description: 'The RelationCreate schema encoded in XML or JSON format.',
content: new \ArrayObject([
'application/vnd.ibexa.api.RelationCreate+xml' => [
'schema' => [
Expand All @@ -84,6 +67,7 @@
),
responses: [
Response::HTTP_CREATED => [
'description' => 'If set, the updated version is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.Relation+xml' => [
'schema' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
),
],
requestBody: new Model\RequestBody(
description: 'No payload required',
content: new \ArrayObject(),
),
responses: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the Relation is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the updated version is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'If-match',
in: 'header',
Expand All @@ -50,15 +41,6 @@
'type' => 'string',
],
),
new Model\Parameter(
name: 'Content-Type',
in: 'header',
required: true,
description: 'The VersionUpdate schema encoded in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -77,6 +59,7 @@
),
],
requestBody: new Model\RequestBody(
description: 'The VersionUpdate schema encoded in XML or JSON format.',
content: new \ArrayObject([
'application/vnd.ibexa.api.VersionUpdate+xml' => [
'schema' => [
Expand All @@ -93,6 +76,7 @@
),
responses: [
Response::HTTP_OK => [
'description' => 'If set, the updated version is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.Version+xml' => [
'schema' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the version list is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -45,6 +36,7 @@
],
responses: [
Response::HTTP_OK => [
'description' => 'If set, the version list is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.VersionList+xml' => [
'schema' => [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@
'Objects',
],
parameters: [
new Model\Parameter(
name: 'Accept',
in: 'header',
required: true,
description: 'If set, the Relation is returned in XML or JSON format.',
schema: [
'type' => 'string',
],
),
new Model\Parameter(
name: 'contentId',
in: 'path',
Expand All @@ -52,6 +43,7 @@
],
responses: [
Response::HTTP_OK => [
'description' => 'If set, the Relation is returned in XML or JSON format.',
'content' => [
'application/vnd.ibexa.api.RelationList+xml' => [
'schema' => [
Expand Down
Loading
Loading