Skip to content

Conversation

@barw4
Copy link
Contributor

@barw4 barw4 commented Aug 20, 2025

🎫 Issue IBX-10527

Related PRs:

ibexa/core#633

Description:

The new route is exposed at /api/ibexa/v2/content/types/view [POST] and accepts the following payload:

{
    "ViewInput": {
        "identifier": "ContentTypeView",
        "ContentTypeQuery": {
            "limit": "1",
            "offset": "0",
            "Query": {
                "ContentTypeIdCriterion": [1,2],
                "ContentTypeIdentifierCriterion": "folder",
                "IsSystemCriterion": true,
                "ContentTypeGroupIdCriterion": 1,
                "ContainsFieldDefinitionIdCriterion": 2
            },
            "SortClauses": {
                "Identifier": "descending",
                "Id": "ascending"
            }
        }
    }
}

with the following headers:
ContentType -> application/vnd.ibexa.api.ContentTypeViewInput+json
Accept => application/vnd.ibexa.api.ContentTypeView+json

For QA:

Documentation:

@barw4 barw4 self-assigned this Aug 20, 2025
@barw4 barw4 added the Feature New feature request label Aug 20, 2025
@barw4 barw4 marked this pull request as ready for review August 21, 2025 07:40
@barw4 barw4 changed the title IBX-XXXX: Content type search API IBX-10527: Content type search API Aug 21, 2025
@mnocon mnocon added the Doc needed The changes require some documentation label Sep 2, 2025
@barw4 barw4 requested a review from a team September 10, 2025 08:06
@ezrobot ezrobot requested review from Steveb-p, ViniTou, adamwojs, alongosz, ciastektk, konradoboza, mikadamczyk, tbialcz and wiewiurdp and removed request for a team September 10, 2025 08:06
@barw4 barw4 force-pushed the find-content-types branch from f6250bd to 76bfa81 Compare September 22, 2025 08:20
@barw4 barw4 requested a review from ViniTou September 23, 2025 08:23
@adamwojs adamwojs force-pushed the find-content-types branch from 2a89508 to 5a0c955 Compare October 4, 2025 06:28
Comment on lines 8 to 11
_instanceof:
Ibexa\Rest\Server\Input\Parser\ContentType\Criterion\ContentTypeCriterionInterface:
tags:
- 'ibexa.rest.content_type.criterion'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be placed on top of the file, directly under services key - as this affects all services in this file.

Also note that this does not mean ContentTypeCriterionInterface parsers will be automatically tagged. It only means that services declared in this file that are instances of that will be tagged. You need Container::registerForAutoconfiguration() in extension instead for this to happen.

@barw4 barw4 requested a review from Steveb-p October 7, 2025 08:39
@barw4 barw4 requested a review from konradoboza October 7, 2025 11:29
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 7, 2025

@adamwojs adamwojs merged commit 5f21d04 into 4.6 Oct 7, 2025
12 checks passed
@adamwojs adamwojs deleted the find-content-types branch October 7, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Doc needed The changes require some documentation Feature New feature request Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants