diff --git a/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.json.example b/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.json.example
new file mode 100644
index 0000000000..1f4da980d3
--- /dev/null
+++ b/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.json.example
@@ -0,0 +1,118 @@
+{
+ "EntryAssignmentCollection": {
+ "_media-type": "application/vnd.ibexa.api.EntryAssignmentCollection+json",
+ "content": {
+ "_media-type": "application/vnd.ibexa.api.Content+json",
+ "Content": {
+ "_media-type": "application/vnd.ibexa.api.ContentInfo+json",
+ "_href": "/api/ibexa/v2/content/objects/1",
+ "_remoteId": "9459d3c29e15006e45197295722c7ade",
+ "_id": 1,
+ "ContentType": {
+ "_media-type": "application/vnd.ibexa.api.ContentType+json",
+ "_href": "/api/ibexa/v2/content/types/1"
+ },
+ "Name": "Ibexa Platform",
+ "TranslatedName": "Ibexa Platform",
+ "Versions": {
+ "_media-type": "application/vnd.ibexa.api.VersionList+json",
+ "_href": "/api/ibexa/v2/content/objects/1/versions"
+ },
+ "CurrentVersion": {
+ "_media-type": "application/vnd.ibexa.api.Version+json",
+ "_href": "/api/ibexa/v2/content/objects/1/currentversion"
+ },
+ "Section": {
+ "_media-type": "application/vnd.ibexa.api.Section+json",
+ "_href": "/api/ibexa/v2/content/sections/1"
+ },
+ "Locations": {
+ "_media-type": "application/vnd.ibexa.api.LocationList+json",
+ "_href": "/api/ibexa/v2/content/objects/1/locations"
+ },
+ "Owner": {
+ "_media-type": "application/vnd.ibexa.api.User+json",
+ "_href": "/api/ibexa/v2/user/users/14"
+ },
+ "lastModificationDate": "2023-01-01T00:00:00+00:00",
+ "publishedDate": "2015-11-30T13:10:46+00:00",
+ "mainLanguageCode": "eng-GB",
+ "currentVersionNo": 10,
+ "alwaysAvailable": true,
+ "isHidden": false,
+ "status": "PUBLISHED",
+ "ObjectStates": {
+ "_media-type": "application/vnd.ibexa.api.ContentObjectStates+json",
+ "_href": "/api/ibexa/v2/content/objects/1/objectstates"
+ }
+ }
+ },
+ "assignments": [
+ {
+ "_media-type": "application/vnd.ibexa.api.TaxonomyEntryAssignment+json",
+ "id": 1,
+ "content": {
+ "_media-type": "application/vnd.ibexa.api.Content+json",
+ "Content": {
+ "_media-type": "application/vnd.ibexa.api.ContentInfo+json",
+ "_href": "/api/ibexa/v2/content/objects/1",
+ "_remoteId": "9459d3c29e15006e45197295722c7ade",
+ "_id": 1,
+ "ContentType": {
+ "_media-type": "application/vnd.ibexa.api.ContentType+json",
+ "_href": "/api/ibexa/v2/content/types/1"
+ },
+ "Name": "Ibexa Platform",
+ "TranslatedName": "Ibexa Platform",
+ "Versions": {
+ "_media-type": "application/vnd.ibexa.api.VersionList+json",
+ "_href": "/api/ibexa/v2/content/objects/1/versions"
+ },
+ "CurrentVersion": {
+ "_media-type": "application/vnd.ibexa.api.Version+json",
+ "_href": "/api/ibexa/v2/content/objects/1/currentversion"
+ },
+ "Section": {
+ "_media-type": "application/vnd.ibexa.api.Section+json",
+ "_href": "/api/ibexa/v2/content/sections/1"
+ },
+ "Locations": {
+ "_media-type": "application/vnd.ibexa.api.LocationList+json",
+ "_href": "/api/ibexa/v2/content/objects/1/locations"
+ },
+ "Owner": {
+ "_media-type": "application/vnd.ibexa.api.User+json",
+ "_href": "/api/ibexa/v2/user/users/14"
+ },
+ "lastModificationDate": "2023-01-01T00:00:00+00:00",
+ "publishedDate": "2015-11-30T13:10:46+00:00",
+ "mainLanguageCode": "eng-GB",
+ "currentVersionNo": 10,
+ "alwaysAvailable": true,
+ "isHidden": false,
+ "status": "PUBLISHED",
+ "ObjectStates": {
+ "_media-type": "application/vnd.ibexa.api.ContentObjectStates+json",
+ "_href": "/api/ibexa/v2/content/objects/1/objectstates"
+ }
+ }
+ },
+ "entry": {
+ "_media-type": "application/vnd.ibexa.api.TaxonomyEntry+json",
+ "TaxonomyEntry": {
+ "_media-type": "application/vnd.ibexa.api.TaxonomyEntry+json",
+ "id": 3,
+ "identifier": "example",
+ "name": "Example",
+ "contentId": 65,
+ "content": {
+ "_media-type": "application/vnd.ibexa.api.Content+json",
+ "_href": "/api/ibexa/v2/content/objects/65"
+ },
+ "taxonomy": "tags"
+ }
+ }
+ }
+ ]
+ }
+}
diff --git a/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.xml.example b/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.xml.example
new file mode 100644
index 0000000000..08ed4e57a0
--- /dev/null
+++ b/docs/api/rest_api/rest_api_reference/input/examples/taxonomy/GET/EntryAssignmentCollection.xml.example
@@ -0,0 +1,56 @@
+
+
+ POST + /content/objects/{contentId}/hide +
+Makes or keep the Content item invisible
+ + + +| Code | +Description | +
|---|---|
| + 204 + | +
+ OK - Object item is hidden. + |
+
| + 401 + | +
+ Error - The user has no permission to change Object item visibility. + |
+
| + 404 + | +
+ Error - The Content item was not found. + |
+
+ POST + /content/objects/{contentId}/reveal +
+Makes or keep the Content item visible
+ + + +| Code | +Description | +
|---|---|
| + 204 + | +
+ OK - Object item is revealed. + |
+
| + 401 + | +
+ Error - The user has no permission to change Object item visibility. + |
+
| + 404 + | +
+ Error - The Content item was not found. + |
+
Executes a query and returns View including the results. The View input reflects the criteria model of the public API. Will respond with a 301, as the resource has been moved to /views (Platform 1.0) - DEPRECATED.
+Executes a query and returns View including the results. The View input reflects the criteria model of the public API. Deprecated as of eZ Platform 1.0 and will respond 301, use POST /views instead.
GET - /content/trash/{trashItemid} + /content/trash/{trashItemId}
Returns the item in Trash with the provided ID.
@@ -24687,7 +24853,7 @@MOVE - /content/trash/{trashItemid} + /content/trash/{trashItemId}
Restores an item from Trash. MOVE or POST with header X-HTTP-Method-Override MOVE.
@@ -24797,7 +24963,7 @@DELETE - /content/trash/{trashItemid} + /content/trash/{trashItemId}
Deletes the provided item from Trash.
@@ -38754,7 +38920,82 @@+ GET + /content/types/{contentTypeId}/fieldDefinitions +
+Returns all Field definitions of the provided Content Type.
+ + + +| Code | +Description | +
|---|---|
| + 200 + | +
+ OK - return a list of Field definitions. + |
+
| + 404 + | +
+ Error - The Content Type does not exist. + |
+
- PATCH + GET /content/types/{contentTypeId}/draft
-Updates metadata of a draft. This method does not handle Field definitions. PATCH or POST with header X-HTTP-Method-Override PATCH.
+Returns the draft of the Content Type with the provided ID.
Accept
-If set, the new Content Type draft is returned in XML or JSON format.
+If set, the Content Type is returned in XML or JSON format.
| Examples |
- application/vnd.ibexa.api.ContentTypeInfo+xml
-application/vnd.ibexa.api.ContentTypeInfo+json
+ |
| Code | +Description | +
|---|---|
| + + 200 + + | +
+ OK - returns the Content Type. + |
+
| + 401 + | +
+ Error - The user is not authorized to read this Content Type. + |
+
| + 404 + | +
+ Error - The Content Type does not exist or does not have a draft. + |
+
| Type | +Description | +
|---|---|
| + + ContentType + + | ++ |
+ PATCH + /content/types/{contentTypeId}/draft +
+Updates metadata of a draft. This method does not handle Field definitions. PATCH or POST with header X-HTTP-Method-Override PATCH.
+ +Content-Type
-The Content Type update schema encoded in XML or JSON format.
+Accept
+If set, the new Content Type draft is returned in XML or JSON format.
+| Property | +Value | +
|---|---|
| Type | ++ + + string + + + + + | +
| Examples | +
+ application/vnd.ibexa.api.ContentTypeInfo+xml
+application/vnd.ibexa.api.ContentTypeInfo+json
+
+ |
+
Content-Type
+The Content Type update schema encoded in XML or JSON format.
| Type | -Description | -
|---|---|
| - - FieldDefinitionCreate - - | -- |
|
-
- FieldDefinition
-
+ Error - The Content Type draft does not exist. |
- This class represents a Field definition. |
- file_copy - -
-
- <?xml version="1.0" encoding="UTF-8"?>
-<FieldDefinitionCreate>
- <identifier>name</identifier>
- <fieldType>ezstring</fieldType>
- <isRequired>true</isRequired>
- <validatorConfiguration>
- <value key="StringLengthValidator">
- <value key="maxStringLength">32</value>
- <value key="minStringLength">8</value>
- </value>
-</validatorConfiguration>
-</FieldDefinitionCreate>
-
-
- Code: 201
+ - file_copy - -
-
- <?xml version="1.0" encoding="UTF-8"?>
-<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/draft/fieldDefinitions/221">
- <id>221</id>
- <identifier>name2</identifier>
- <fieldType>ezstring</fieldType>
- <fieldGroup></fieldGroup>
- <position>0</position>
- <isTranslatable>true</isTranslatable>
- <isRequired>true</isRequired>
- <isInfoCollector>false</isInfoCollector>
- <defaultValue/>
- <isSearchable>true</isSearchable>
- <names/>
- <descriptions/>
- <fieldSettings/>
- <validatorConfiguration>
- <value key="StringLengthValidator">
- <value key="maxStringLength">32</value>
- <value key="minStringLength">8</value>
- </value>
- </validatorConfiguration>
-</FieldDefinition>
-
-
- - GET - /content/types/{contentTypeId}/draft/fieldDefinitions/{fieldDefinitionId} + POST + /content/types/{contentTypeId}/draft/fieldDefinitions
-Returns the Field definition by the given ID.
+Creates a new Field definition for the given Content Type.
Accept
-If set, the Field definition is returned in XML or JSON format.
+If set, the new Field definition is returned in XML or JSON format.
+| Property | +Value | +
|---|---|
| Type | ++ + + string + + + + + | +
| Examples | +
+ application/vnd.ibexa.api.FieldDefinition+xml
+application/vnd.ibexa.api.FieldDefinition+json
+
+ |
+
Content-Type
+The Field Definition Create schema encoded in XML or JSON format.
+| Property | +Value | +
|---|---|
| Type | ++ + + string + + + + + | +
| Examples | +
+ application/vnd.ibexa.api.FieldDefinitionCreate+xml
+application/vnd.ibexa.api.FieldDefinitionCreate+json
+
+ |
+
| Code | +Description | +
|---|---|
| + + 201 + + | +
+ Field definition created. + |
+
| + 400 + | +
+ Error - The input does not match the input schema definition or validation on the Field definition fails. + |
+
| + 401 + | +
+ Error - The user is not authorized to add a Field definition. + |
+
| + 403 + | +
+ Error - A Field definition with the same identifier already exists in the given Content Type. The Field definition is of singular type, already existing in the given Content Type. The Field definition you want to add is of a type that can't be added to a Content Type that already has content instances. + |
+
| Type | +Description | +
|---|---|
| + + FieldDefinitionCreate + + | ++ |
| + + FieldDefinition + + | +This class represents a Field definition. | +
+ file_copy + +
+
+ <?xml version="1.0" encoding="UTF-8"?>
+<FieldDefinitionCreate>
+ <identifier>name</identifier>
+ <fieldType>ezstring</fieldType>
+ <isRequired>true</isRequired>
+ <validatorConfiguration>
+ <value key="StringLengthValidator">
+ <value key="maxStringLength">32</value>
+ <value key="minStringLength">8</value>
+ </value>
+</validatorConfiguration>
+</FieldDefinitionCreate>
+
+
+ Code: 201
+ + file_copy + +
+
+ <?xml version="1.0" encoding="UTF-8"?>
+<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/14/draft/fieldDefinitions/221">
+ <id>221</id>
+ <identifier>name2</identifier>
+ <fieldType>ezstring</fieldType>
+ <fieldGroup></fieldGroup>
+ <position>0</position>
+ <isTranslatable>true</isTranslatable>
+ <isRequired>true</isRequired>
+ <isInfoCollector>false</isInfoCollector>
+ <defaultValue/>
+ <isSearchable>true</isSearchable>
+ <names/>
+ <descriptions/>
+ <fieldSettings/>
+ <validatorConfiguration>
+ <value key="StringLengthValidator">
+ <value key="maxStringLength">32</value>
+ <value key="minStringLength">8</value>
+ </value>
+ </validatorConfiguration>
+</FieldDefinition>
+
+
+ + GET + /content/types/{contentTypeId}/draft/fieldDefinitions/{fieldDefinitionId} +
+Returns the Field definition by the given ID.
+ +Accept
+If set, the Field definition is returned in XML or JSON format.
| Examples |
- application/vnd.ibexa.api.UserGroupList+xml
-application/vnd.ibexa.api.UserGroupList+json
-application/vnd.ibexa.api.UserGroupRefList+xml
-application/vnd.ibexa.api.UserGroupRefList+json
+ |
| Property | -Type | -Value | -
|---|---|---|
| - roleId - | -- - - string - - - - - | -- Lists User Groups assigned to the given Role (e.g. GET /user/groups?roleId=1). - | -
| - id - | -- - - string - - - - - | -- Retrieves the User Groups for the given ID. - | -
| - remoteID - | -- - - string - - - - - | -- Retrieves the User Groups for the given remote ID. - | -
OK - the User with the given ID.
Error - the user has no permission to read User Groups.
+Error - the user has no permission to read Users. For example, Anonymous user can't load oneself.
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
-<UserGroupList media-type="application/vnd.ibexa.api.UserGroupList+xml" href="/api/ibexa/v2/user/groups">
- <UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13/15" id="14" remoteId="1bb4fe25487f05527efa8bfd394cecc7">
+<UserList media-type="application/vnd.ibexa.api.UserList+xml" href="/api/ibexa/v2/user/users">
+ <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/79" id="79" remoteId="bcf0764b417f05af21852a1f03fb1f13">
<ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/4"/>
- <name>Administrator User</name>
- <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/14/versions"/>
+ <name>Jose Vargas</name>
+ <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/79/versions"/>
<Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/>
- <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13/15"/>
- <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/14/locations"/>
- <Owner media-type="application/vnd.ibexa.a
+ <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/12/79"/>
+ <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/79/locations"/>
+ <Groups media-type="application/vnd.ibexa.api.UserGroupRefList+xml" href="/api
file_copy
-
+
{
- "UserGroupList": {
- "_media-type": "application/vnd.ibexa.api.UserGroupList+json",
- "_href": "/api/ibexa/v2/user/groups",
- "UserGroup": [
+ "UserList": {
+ "_media-type": "application/vnd.ibexa.api.UserList+json",
+ "_href": "/api/ibexa/v2/user/users",
+ "User": [
{
- "_media-type": "application/vnd.ibexa.api.UserGroup+json",
- "_href": "/api/ibexa/v2/user/groups/1/5/13/15",
- "_id": 14,
- "_remoteId": "1bb4fe25487f05527efa8bfd394cecc7",
+ "_media-type": "application/vnd.ibexa.api.User+json",
+ "_href": "/api/ibexa/v2/user/users/79",
+ "_id": 79,
+ "_remoteId": "bcf0764b417f05af21852a1f03fb1f13",
"ContentType": {
"_media-type": "application/vnd.ibexa.api.ContentType+json",
"_href": "/api/ibexa/v2/content/types/4"
},
- "name": "Administrator User",
+ "name": "Jose Vargas",
"Versions": {
"_media-type": "application/vnd.ibexa.api.VersionList+json",
- "_href": "/api/ibexa/v2/content/objects/14/versions"
+ "_href": "/api/ibexa/v2/content/objects/79/versions"
},
"Section": {
"_media-type": "application/vnd.ibexa.api.Section+json",
- "_href": "/api/ibexa/
+ "_href": "/api/ibexa/v2/content/sections/2"
+
file_copy
-
+
<?xml version="1.0" encoding="UTF-8"?>
-<UserRefList media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/groups/13/users">
- <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/113"/>
- <User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
-</UserRefList>
-
+<UserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5/13" id="12" remoteId="9b47a45624b023b1a76c73b74d704acf">
+ <ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/3"/>
+ <name>Administrator users</name>
+ <Versions media-type="application/vnd.ibexa.api.VersionList+xml" href="/api/ibexa/v2/content/objects/12/versions"/>
+ <Section media-type="application/vnd.ibexa.api.Section+xml" href="/api/ibexa/v2/content/sections/2"/>
+ <MainLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/5/13"/>
+ <Locations media-type="application/vnd.ibexa.api.LocationList+xml" href="/api/ibexa/v2/content/objects/12/locations"/>
+ <Owner media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
+ <publishDate>2002-10-06T16:12:55+00:00</publishDate>
+ <lastModificationDate>2002-10-06
file_copy
-
+
{
- "UserRefList": {
- "_media-type": "application/vnd.ibexa.api.UserRefList+json",
- "_href": "/api/ibexa/v2/user/groups/13/users",
- "User": [
- {
- "_media-type": "application/vnd.ibexa.api.User+json",
- "_href": "/api/ibexa/v2/user/users/113"
- },
- {
- "_media-type": "application/vnd.ibexa.api.User+json",
- "_href": "/api/ibexa/v2/user/users/14"
- }
- ]
- }
-}
-
+ "UserGroup": {
+ "_media-type": "application/vnd.ibexa.api.UserGroup+json",
+ "_href": "/api/ibexa/v2/user/groups/1/5/13",
+ "_id": 12,
+ "_remoteId": "9b47a45624b023b1a76c73b74d704acf",
+ "ContentType": {
+ "_media-type": "application/vnd.ibexa.api.ContentType+json",
+ "_href": "/api/ibexa/v2/content/types/3"
+ },
+ "name": "Administrator users",
+ "Versions": {
+ "_media-type": "application/vnd.ibexa.api.VersionList+json",
+ "_href": "/api/ibexa/v2/content/objects/12/versions"
+ },
+ "Section": {
+ "_media-type": "application/vnd.ibexa.api.Section+json",
+ "_href": "/api/ibexa/v2/content/sections/2"
+ },
+ "MainLocation": {
+ "_media-type": "application/vnd.ibexa.api.Location+json",
+ "_href": "/api/ibexa/v2/content/locations/1/5/13"
+ },
+ "Locations": {
+ "_media-type": "application/vnd.ibexa.api.Location