+ 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/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. + |
+
+ GET + /content/types/{contentTypeId}/draft +
+Returns the draft of the Content Type with the provided ID.
+ +Accept
+If set, the Content Type is returned in XML or JSON format.
+| Property | +Value | +
|---|---|
| Type | ++ + + string + + + + + | +
| Examples | +
+ application/vnd.ibexa.api.ContentType+xml
+application/vnd.ibexa.api.ContentType+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 + + | ++ |
+ GET + /content/types/{contentTypeId}/draft/fieldDefinitions +
+Returns all Field definitions of the provided Content Type Draft.
+ + + +| Code | +Description | +
|---|---|
| + 200 + | +
+ OK - return a list of Field definitions. + |
+
| + 404 + | +
+ Error - The Content Type draft does not exist. + |
+
GET - /user/groups + /user/current
-Loads User Groups for either an an ID or a remote ID or a Role.
+Loads the current user.
Accept
-UserGroupList - If set, the User Group List is returned in XML or JSON format. UserGroupRefList - If set, the link list of User Group is returned in XML or JSON format.
+If set, the User 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"
+