Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
c428cb1
ContentLoadByIdController: Rm Accept header parameter
adriendupuis Aug 5, 2025
c23b5cf
ContentTypeLinkToGroupController.php: Describe `group` GET param
adriendupuis Sep 9, 2025
b6b7fc6
ContentLoadByIdController: Rm Accept header parameter
adriendupuis Aug 5, 2025
5ab7594
ContentTypeLinkToGroupController.php: Describe `group` GET param
adriendupuis Sep 9, 2025
c50b6cf
Merge remote-tracking branch 'origin/enh-openapi' into enh-openapi
adriendupuis Feb 18, 2026
cc4317c
Fix user session
adriendupuis Feb 18, 2026
d131ed2
JWT: The XML input and output aren't supported since #101
adriendupuis Mar 25, 2026
94a3c25
ContentLoadByIdController: Rm Accept header parameter
adriendupuis Aug 5, 2025
c53c70d
ContentTypeLinkToGroupController.php: Describe `group` GET param
adriendupuis Sep 9, 2025
ab98fd2
Fix user session
adriendupuis Feb 18, 2026
22843ab
JWT: The XML input and output aren't supported since #101
adriendupuis Mar 25, 2026
f1d7b0e
Merge remote-tracking branch 'origin/enh-openapi' into enh-openapi
adriendupuis Mar 26, 2026
4ebf91d
Fix REST ApiPlatform/OpenApi doc
adriendupuis Apr 22, 2026
bf62b00
JWT: add response description
adriendupuis Apr 22, 2026
b776a58
Sort mime types
adriendupuis Apr 22, 2026
1b9afe8
JWT: Update requestBody description
adriendupuis Apr 22, 2026
9ee5a1f
ContentCreateController: Add X-CSRF-Token and ContentInfo+json
adriendupuis Apr 29, 2026
1cea8ae
ContentMetadataUpdateController: Add CSRF, use existing examples
adriendupuis Apr 29, 2026
790a2e0
Add CSRF token to all unsafe methods
adriendupuis Apr 29, 2026
f1d4b37
rm SessionController.php empty file
adriendupuis Apr 30, 2026
4155f75
rm RestAuthenticator.php empty file
adriendupuis Apr 30, 2026
f4876d2
rm AuthorizationHeaderRESTRequestMatcher.php empty file
adriendupuis Apr 30, 2026
5c1b76c
Fix x-ibexa-example-file
adriendupuis Apr 30, 2026
62a06d6
Fix x-ibexa-example-file
adriendupuis May 4, 2026
1adcc6e
Fix x-ibexa-example-file
adriendupuis May 4, 2026
219db0b
Fix x-ibexa-example-file
adriendupuis May 4, 2026
17b4d02
Views.php: Use existing example
adriendupuis May 5, 2026
cd818f0
Merge branch '5.0' into enh-openapi
adriendupuis May 6, 2026
676c67b
roles_schemas.yml: Fix required
adriendupuis May 7, 2026
7731cf0
BookmarkIsBookmarkedController: Better param & response descriptions
adriendupuis May 11, 2026
f1314bf
Add operationId
adriendupuis May 11, 2026
8f7b2a0
BookmarkIsBookmarkedController w/ GET
adriendupuis May 11, 2026
9863520
BookmarkCreatedController: requestBody before responses
adriendupuis May 11, 2026
3adaf49
Controller: requestBody before responses
adriendupuis May 11, 2026
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
24 changes: 4 additions & 20 deletions src/lib/Server/Controller/Content/ContentLoadByIdController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,13 @@
uriTemplate: '/content/objects/{contentId}',
openapi: new Model\Operation(
summary: 'Load content',
description: 'Loads the content item for the given ID. Depending on the Accept header the current version is embedded (i.e. the current published version or if it does not exist, the draft of the authenticated user).',
description: 'Loads the content item for the given ID. Depending on the Accept header the current version is embedded (i.e. the current published version or if it does not exist, the draft of the authenticated user).
* 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.',
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',
'enum' => [
'application/vnd.ibexa.api.Content+xml',
'application/vnd.ibexa.api.Content+json',
'application/vnd.ibexa.api.ContentInfo+xml',
'application/vnd.ibexa.api.ContentInfo+json',
],
],
),
new Model\Parameter(
name: 'If-None-Match',
in: 'header',
Expand Down Expand Up @@ -80,12 +64,12 @@
'schema' => [
'$ref' => '#/components/schemas/ContentInfo',
],
'x-ibexa-example-file' => '@IbexaRestBundle/Resources/api_platform/examples/content/objects/content_id/PATCH/ContentInfo.xml.example',
],
'application/vnd.ibexa.api.ContentInfo+json' => [
'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 @@ -46,6 +46,15 @@
'type' => 'string',
],
),
new Model\Parameter(
name: 'group',
in: 'query',
required: true,
schema: [
'type' => 'string',
],
description: 'Destination content type group URI; for example with content type group 4: `?group=/api/ibexa/v2/content/typegroups/4`',
),
],
responses: [
Response::HTTP_OK => [
Expand Down
Loading