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
Original file line number Diff line number Diff line change
@@ -0,0 +1,182 @@
{
"ContentTypeList": {
"_media-type": "application/vnd.ibexa.api.ContentTypeList+json",
"_href": "",
"ContentType": [
{
"_media-type": "application/vnd.ibexa.api.ContentType+json",
"_href": "/api/ibexa/v2/content/types/1",
"id": 1,
"status": "DEFINED",
"identifier": "folder",
"names": {
"value": [
{
"_languageCode": "eng-GB",
"#text": "Folder"
}
]
},
"descriptions": {
"value": []
},
"creationDate": "2002-06-18T09:21:38+00:00",
"modificationDate": "2015-11-29T21:14:32+00:00",
"Creator": {
"_media-type": "application/vnd.ibexa.api.User+json",
"_href": "/api/ibexa/v2/user/users/14"
},
"Modifier": {
"_media-type": "application/vnd.ibexa.api.User+json",
"_href": "/api/ibexa/v2/user/users/14"
},
"Groups": {
"_media-type": "application/vnd.ibexa.api.ContentTypeGroupRefList+json",
"_href": "/api/ibexa/v2/content/types/1/groups"
},
"Draft": {
"_media-type": "application/vnd.ibexa.api.ContentType+json",
"_href": "/api/ibexa/v2/content/types/1/draft"
},
"remoteId": "a3d405b81be900468eb153d774f4f0d2",
"urlAliasSchema": null,
"nameSchema": "<short_name|name>",
"isContainer": true,
"mainLanguageCode": "eng-GB",
"defaultAlwaysAvailable": true,
"defaultSortField": "PATH",
"defaultSortOrder": "ASC",
"FieldDefinitions": {
"_media-type": "application/vnd.ibexa.api.FieldDefinitionList+json",
"_href": "/api/ibexa/v2/content/types/1/fieldDefinitions",
"FieldDefinition": [
{
"_media-type": "application/vnd.ibexa.api.FieldDefinition+json",
"_href": "/api/ibexa/v2/content/types/1/fieldDefinitions/4",
"id": 4,
"identifier": "name",
"fieldType": "ezstring",
"fieldGroup": "",
"position": 1,
"isTranslatable": true,
"isRequired": true,
"isInfoCollector": false,
"defaultValue": "Folder",
"isSearchable": true,
"names": {
"value": [
{
"_languageCode": "eng-GB",
"#text": "Name"
}
]
},
"descriptions": {
"value": []
},
"fieldSettings": [],
"validatorConfiguration": {
"StringLengthValidator": {
"maxStringLength": 255,
"minStringLength": null
}
}
},
{
"_media-type": "application/vnd.ibexa.api.FieldDefinition+json",
"_href": "/api/ibexa/v2/content/types/1/fieldDefinitions/119",
"id": 119,
"identifier": "short_description",
"fieldType": "ezrichtext",
"fieldGroup": "",
"position": 3,
"isTranslatable": true,
"isRequired": false,
"isInfoCollector": false,
"defaultValue": {
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n",
"xhtml5edit": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n"
},
"isSearchable": true,
"names": {
"value": [
{
"_languageCode": "eng-GB",
"#text": "Short description"
}
]
},
"descriptions": {
"value": []
},
"fieldSettings": [],
"validatorConfiguration": []
},
{
"_media-type": "application/vnd.ibexa.api.FieldDefinition+json",
"_href": "/api/ibexa/v2/content/types/1/fieldDefinitions/155",
"id": 155,
"identifier": "short_name",
"fieldType": "ezstring",
"fieldGroup": "",
"position": 2,
"isTranslatable": true,
"isRequired": false,
"isInfoCollector": false,
"defaultValue": null,
"isSearchable": true,
"names": {
"value": [
{
"_languageCode": "eng-GB",
"#text": "Short name"
}
]
},
"descriptions": {
"value": []
},
"fieldSettings": [],
"validatorConfiguration": {
"StringLengthValidator": {
"maxStringLength": 100,
"minStringLength": null
}
}
},
{
"_media-type": "application/vnd.ibexa.api.FieldDefinition+json",
"_href": "/api/ibexa/v2/content/types/1/fieldDefinitions/156",
"id": 156,
"identifier": "description",
"fieldType": "ezrichtext",
"fieldGroup": "",
"position": 4,
"isTranslatable": true,
"isRequired": false,
"isInfoCollector": false,
"defaultValue": {
"xml": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://docbook.org/ns/docbook\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"5.0-variant ezpublish-1.0\"/>\n",
"xhtml5edit": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<section xmlns=\"http://ibexa.co/namespaces/ezpublish5/xhtml5/edit\"/>\n"
},
"isSearchable": true,
"names": {
"value": [
{
"_languageCode": "eng-GB",
"#text": "Description"
}
]
},
"descriptions": {
"value": []
},
"fieldSettings": [],
"validatorConfiguration": []
}
]
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentTypeList media-type="application/vnd.ibexa.api.ContentTypeList+xml" href="">
<ContentType media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1">
<id>1</id>
<status>DEFINED</status>
<identifier>folder</identifier>
<names>
<value languageCode="eng-GB">Folder</value>
</names>
<descriptions/>
<creationDate>2002-06-18T09:21:38+00:00</creationDate>
<modificationDate>2015-11-29T21:14:32+00:00</modificationDate>
<Creator media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
<Modifier media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
<Groups media-type="application/vnd.ibexa.api.ContentTypeGroupRefList+xml" href="/api/ibexa/v2/content/types/1/groups"/>
<Draft media-type="application/vnd.ibexa.api.ContentType+xml" href="/api/ibexa/v2/content/types/1/draft"/>
<remoteId>a3d405b81be900468eb153d774f4f0d2</remoteId>
<urlAliasSchema></urlAliasSchema>
<nameSchema>&lt;short_name|name&gt;</nameSchema>
<isContainer>true</isContainer>
<mainLanguageCode>eng-GB</mainLanguageCode>
<defaultAlwaysAvailable>true</defaultAlwaysAvailable>
<defaultSortField>PATH</defaultSortField>
<defaultSortOrder>ASC</defaultSortOrder>
<FieldDefinitions media-type="application/vnd.ibexa.api.FieldDefinitionList+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions">
<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/4">
<id>4</id>
<identifier>name</identifier>
<fieldType>ezstring</fieldType>
<fieldGroup></fieldGroup>
<position>1</position>
<isTranslatable>true</isTranslatable>
<isRequired>true</isRequired>
<isInfoCollector>false</isInfoCollector>
<defaultValue>Folder</defaultValue>
<isSearchable>true</isSearchable>
<names>
<value languageCode="eng-GB">Name</value>
</names>
<descriptions/>
<fieldSettings/>
<validatorConfiguration>
<value key="StringLengthValidator">
<value key="maxStringLength">255</value>
<value key="minStringLength"/></value>
</validatorConfiguration>
</FieldDefinition>
<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/119">
<id>119</id>
<identifier>short_description</identifier>
<fieldType>ezrichtext</fieldType>
<fieldGroup></fieldGroup>
<position>3</position>
<isTranslatable>true</isTranslatable>
<isRequired>false</isRequired>
<isInfoCollector>false</isInfoCollector>
<defaultValue>
<value key="xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;section xmlns=&quot;http://docbook.org/ns/docbook&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; version=&quot;5.0-variant ezpublish-1.0&quot;/&gt;
</value>
<value key="xhtml5edit">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;section xmlns=&quot;http://ibexa.co/namespaces/ezpublish5/xhtml5/edit&quot;/&gt;
</value>
</defaultValue>
<isSearchable>true</isSearchable>
<names>
<value languageCode="eng-GB">Short description</value>
</names>
<descriptions/>
<fieldSettings/>
<validatorConfiguration/>
</FieldDefinition>
<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/155">
<id>155</id>
<identifier>short_name</identifier>
<fieldType>ezstring</fieldType>
<fieldGroup></fieldGroup>
<position>2</position>
<isTranslatable>true</isTranslatable>
<isRequired>false</isRequired>
<isInfoCollector>false</isInfoCollector>
<defaultValue/>
<isSearchable>true</isSearchable>
<names>
<value languageCode="eng-GB">Short name</value>
</names>
<descriptions/>
<fieldSettings/>
<validatorConfiguration>
<value key="StringLengthValidator">
<value key="maxStringLength">100</value>
<value key="minStringLength"/></value>
</validatorConfiguration>
</FieldDefinition>
<FieldDefinition media-type="application/vnd.ibexa.api.FieldDefinition+xml" href="/api/ibexa/v2/content/types/1/fieldDefinitions/156">
<id>156</id>
<identifier>description</identifier>
<fieldType>ezrichtext</fieldType>
<fieldGroup></fieldGroup>
<position>4</position>
<isTranslatable>true</isTranslatable>
<isRequired>false</isRequired>
<isInfoCollector>false</isInfoCollector>
<defaultValue>
<value key="xml">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;section xmlns=&quot;http://docbook.org/ns/docbook&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; version=&quot;5.0-variant ezpublish-1.0&quot;/&gt;
</value>
<value key="xhtml5edit">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;section xmlns=&quot;http://ibexa.co/namespaces/ezpublish5/xhtml5/edit&quot;/&gt;
</value>
</defaultValue>
<isSearchable>true</isSearchable>
<names>
<value languageCode="eng-GB">Description</value>
</names>
<descriptions/>
<fieldSettings/>
<validatorConfiguration/>
</FieldDefinition>
</FieldDefinitions>
</ContentType>
</ContentTypeList>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"ContentTypeViewInput": {
"identifier": "ContentTypeViewInput",
"ContentTypeQuery": {
"limit": 1,
"offset": 0,
"Query": {
"ContentTypeGroupIdCriterion": 1,
"ContentTypeIdentifierCriterion": "folder"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<ContentTypeViewInput>
<identifier>ContentTypeViewInput</identifier>
<ContentTypeQuery>
<limit>1</limit>
<offset>0</offset>
<Query>
<ContentTypeIdentifierCriterion>folder</ContentTypeIdentifierCriterion>
<ContentTypeGroupIdCriterion>1</ContentTypeGroupIdCriterion>
</Query>
</ContentTypeQuery>
</ContentTypeViewInput>
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,41 @@ get:
description: OK - returns a list of content types.
401:
description: Error - The user has no permission to read the content types.
/view:
post:
displayName: Find content types
description: Executes a query and returns a View that includes the results. Refer to [Search Criteria Reference](/en/4.6/search/content_type_search_reference/content_type_criteria/).
headers:
Accept:
description: The ContentTypeList schema is returned in XML or JSON format.
example: |
application/vnd.ibexa.api.ContentTypeList+xml
application/vnd.ibexa.api.ContentTypeList+json
Content-Type:
description: The ContentTypeViewInput schema is posted in XML or JSON format.
example: |
application/vnd.ibexa.api.ContentTypeViewInput+xml
application/vnd.ibexa.api.ContentTypeViewInput+json
body:
application/vnd.ibexa.api.ContentTypeViewInput+xml:
type: ContentTypeViewInput
example: !include examples/content/types/view/ContentTypeViewInput.xml.example
application/vnd.ibexa.api.ContentTypeViewInput+json:
type: ContentTypeViewInputWrapper
example: !include examples/content/types/view/ContentTypeViewInput.json.example
responses:
200:
description: OK - returns a view and its results
body:
application/vnd.ibexa.api.ContentTypeView+xml:
type: ContentTypeList
example: !include examples/content/types/view/ContentTypeList.xml.example
application/vnd.ibexa.api.ContentTypeView+json:
type: ContentTypeListWrapper
example: !include examples/content/types/view/ContentTypeList.json.example
400:
description: Error - the input doesn't match the input schema definition

/{contentTypeId}:
get:
displayName: Get content type
Expand Down
Loading
Loading