-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Missing attribues, & Introduce x-ibexa-example-file
- Loading branch information
Showing
277 changed files
with
24,993 additions
and
4 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
src/bundle/Resources/api_platform/examples/GET/Root.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"Root": { | ||
"_media-type": "application/vnd.ibexa.api.Root+json", | ||
"content": { | ||
"_href": "/api/ibexa/v2/content/objects", | ||
"_media-type": "" | ||
}, | ||
"contentByRemoteId": { | ||
"_href": "/api/ibexa/v2/content/objects{?remoteId}", | ||
"_media-type": "" | ||
}, | ||
"contentTypeByIdentifier": { | ||
"_href": "/api/ibexa/v2/content/types{?identifier}", | ||
"_media-type": "" | ||
}, | ||
"contentTypeGroupByIdentifier": { | ||
"_href": "/api/ibexa/v2/content/typegroups{?identifier}", | ||
"_media-type": "" | ||
}, | ||
"contentTypeGroups": { | ||
"_href": "/api/ibexa/v2/content/typegroups", | ||
"_media-type": "application/vnd.ibexa.api.ContentTypeGroupList+json" | ||
}, | ||
"contentTypes": { | ||
"_href": "/api/ibexa/v2/content/types", | ||
"_media-type": "application/vnd.ibexa.api.ContentTypeInfoList+json" | ||
}, | ||
"createSession": { | ||
"_href": "/api/ibexa/v2/user/sessions", | ||
"_media-type": "application/vnd.ibexa.api.UserSession+json" | ||
}, | ||
"globalUrlAliases": { | ||
"_href": "/api/ibexa/v2/content/urlaliases", | ||
"_media-type": "application/vnd.ibexa.api.UrlAliasRefList+json" | ||
}, | ||
"locationByPath": { | ||
"_href": "/api/ibexa/v2/content/locations{?locationPath}", | ||
"_media-type": "" | ||
}, | ||
"locationByRemoteId": { | ||
"_href": "/api/ibexa/v2/content/locations{?remoteId}", | ||
"_media-type": "" | ||
}, | ||
"objectStateGroups": { | ||
"_href": "/api/ibexa/v2/content/objectstategroups", | ||
"_media-type": "application/vnd.ibexa.api.ObjectStateGroupList+json" | ||
}, | ||
"objectStates": { | ||
"_href": "/api/ibexa/v2/content/objectstategroups/{objectStateGroupId}/objectstates", | ||
"_media-type": "application/vnd.ibexa.api.ObjectStateList+json" | ||
}, | ||
"roles": { | ||
"_href": "/api/ibexa/v2/user/roles", | ||
"_media-type": "application/vnd.ibexa.api.RoleList+json" | ||
}, | ||
"rootLocation": { | ||
"_href": "/api/ibexa/v2/content/locations/1/2", | ||
"_media-type": "application/vnd.ibexa.api.Location+json" | ||
}, | ||
"rootMediaFolder": { | ||
"_href": "/api/ibexa/v2/content/locations/1/43", | ||
"_media-type": "application/vnd.ibexa.api.Location+json" | ||
}, | ||
"rootUserGroup": { | ||
"_href": "/api/ibexa/v2/user/groups/1/5", | ||
"_media-type": "application/vnd.ibexa.api.UserGroup+json" | ||
}, | ||
"sections": { | ||
"_href": "/api/ibexa/v2/content/sections", | ||
"_media-type": "application/vnd.ibexa.api.SectionList+json" | ||
}, | ||
"trash": { | ||
"_href": "/api/ibexa/v2/content/trash", | ||
"_media-type": "application/vnd.ibexa.api.Trash+json" | ||
}, | ||
"urlWildcards": { | ||
"_href": "/api/ibexa/v2/content/urlwildcards", | ||
"_media-type": "application/vnd.ibexa.api.UrlWildcardList+json" | ||
}, | ||
"users": { | ||
"_href": "/api/ibexa/v2/user/users", | ||
"_media-type": "application/vnd.ibexa.api.UserRefList+json" | ||
}, | ||
"views": { | ||
"_href": "/api/ibexa/v2/views", | ||
"_media-type": "application/vnd.ibexa.api.RefList+json" | ||
}, | ||
"refreshSession": { | ||
"_media-type": "application\/vnd.ibexa.api.UserSession+json", | ||
"_href": "\/api\/ezp\/v2\/user\/sessions\/{sessionId}\/refresh" | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/bundle/Resources/api_platform/examples/GET/Root.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Root media-type="application/vnd.ibexa.api.Root+xml"> | ||
<content media-type="" href="/api/ibexa/v2/content/objects"/> | ||
<contentByRemoteId media-type="" href="/api/ibexa/v2/content/objects{?remoteId}"/> | ||
<contentTypes media-type="application/vnd.ibexa.api.ContentTypeInfoList+xml" href="/api/ibexa/v2/content/types"/> | ||
<contentTypeByIdentifier media-type="" href="/api/ibexa/v2/content/types{?identifier}"/> | ||
<contentTypeGroups media-type="application/vnd.ibexa.api.ContentTypeGroupList+xml" href="/api/ibexa/v2/content/typegroups"/> | ||
<contentTypeGroupByIdentifier media-type="" href="/api/ibexa/v2/content/typegroups{?identifier}"/> | ||
<users media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users"/> | ||
<roles media-type="application/vnd.ibexa.api.RoleList+xml" href="/api/ibexa/v2/user/roles"/> | ||
<rootLocation media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/2"/> | ||
<rootUserGroup media-type="application/vnd.ibexa.api.UserGroup+xml" href="/api/ibexa/v2/user/groups/1/5"/> | ||
<rootMediaFolder media-type="application/vnd.ibexa.api.Location+xml" href="/api/ibexa/v2/content/locations/1/43"/> | ||
<locationByRemoteId media-type="" href="/api/ibexa/v2/content/locations{?remoteId}"/> | ||
<locationByPath media-type="" href="/api/ibexa/v2/content/locations{?locationPath}"/> | ||
<trash media-type="application/vnd.ibexa.api.Trash+xml" href="/api/ibexa/v2/content/trash"/> | ||
<sections media-type="application/vnd.ibexa.api.SectionList+xml" href="/api/ibexa/v2/content/sections"/> | ||
<views media-type="application/vnd.ibexa.api.RefList+xml" href="/api/ibexa/v2/views"/> | ||
<objectStateGroups media-type="application/vnd.ibexa.api.ObjectStateGroupList+xml" href="/api/ibexa/v2/content/objectstategroups"/> | ||
<objectStates media-type="application/vnd.ibexa.api.ObjectStateList+xml" href="/api/ibexa/v2/content/objectstategroups/{objectStateGroupId}/objectstates"/> | ||
<globalUrlAliases media-type="application/vnd.ibexa.api.UrlAliasRefList+xml" href="/api/ibexa/v2/content/urlaliases"/> | ||
<urlWildcards media-type="application/vnd.ibexa.api.UrlWildcardList+xml" href="/api/ibexa/v2/content/urlwildcards"/> | ||
<createSession media-type="application/vnd.ibexa.api.UserSession+xml" href="/api/ibexa/v2/user/sessions"/> | ||
<refreshSession media-type="application/vnd.ibexa.api.UserSession+xml" href="/api/ibexa/v2/user/sessions/{sessionId}/refresh"/> | ||
</Root> |
254 changes: 254 additions & 0 deletions
254
src/bundle/Resources/api_platform/examples/bookmark/GET/BookmarkList.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,254 @@ | ||
{ | ||
"BookmarkList": { | ||
"_media-type": "application/vnd.ibexa.api.BookmarkList+json", | ||
"count": 3, | ||
"items": [ | ||
{ | ||
"_media-type": "application/vnd.ibexa.api.Bookmark+json", | ||
"__href": "/api/ibexa/v2/bookmark/65", | ||
"Location": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/57/65", | ||
"id": 65, | ||
"priority": 0, | ||
"hidden": false, | ||
"invisible": false, | ||
"explicitlyHidden": false, | ||
"ParentLocation": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/57" | ||
}, | ||
"pathString": "/1/2/57/65/", | ||
"depth": 3, | ||
"childCount": 0, | ||
"remoteId": "aa538e305aea472eb221ce23d1cc4b50", | ||
"Children": { | ||
"_media-type": "application/vnd.ibexa.api.LocationList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/57/65/children" | ||
}, | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.Content+json", | ||
"_href": "/api/ibexa/v2/content/objects/63" | ||
}, | ||
"sortField": "PATH", | ||
"sortOrder": "ASC", | ||
"UrlAliases": { | ||
"_media-type": "application/vnd.ibexa.api.UrlAliasRefList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/57/65/urlaliases" | ||
}, | ||
"ContentInfo": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/63", | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/63", | ||
"_remoteId": "211e99934c8fef5900e4813b96ec5c87", | ||
"_id": 63, | ||
"ContentType": { | ||
"_media-type": "application/vnd.ibexa.api.ContentType+json", | ||
"_href": "/api/ibexa/v2/content/types/2" | ||
}, | ||
"Name": "Art3", | ||
"TranslatedName": "Art3", | ||
"Versions": { | ||
"_media-type": "application/vnd.ibexa.api.VersionList+json", | ||
"_href": "/api/ibexa/v2/content/objects/63/versions" | ||
}, | ||
"CurrentVersion": { | ||
"_media-type": "application/vnd.ibexa.api.Version+json", | ||
"_href": "/api/ibexa/v2/content/objects/63/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/63/locations" | ||
}, | ||
"Owner": { | ||
"_media-type": "application/vnd.ibexa.api.User+json", | ||
"_href": "/api/ibexa/v2/user/users/14" | ||
}, | ||
"lastModificationDate": "2021-06-28T11:34:17+00:00", | ||
"publishedDate": "2021-06-28T11:34:17+00:00", | ||
"mainLanguageCode": "eng-GB", | ||
"currentVersionNo": 1, | ||
"alwaysAvailable": false, | ||
"isHidden": false, | ||
"status": "PUBLISHED", | ||
"ObjectStates": { | ||
"_media-type": "application/vnd.ibexa.api.ContentObjectStates+json", | ||
"_href": "/api/ibexa/v2/content/objects/63/objectstates" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"_media-type": "application/vnd.ibexa.api.Bookmark+json", | ||
"__href": "/api/ibexa/v2/bookmark/68", | ||
"Location": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/58/68", | ||
"id": 68, | ||
"priority": 0, | ||
"hidden": false, | ||
"invisible": false, | ||
"explicitlyHidden": false, | ||
"ParentLocation": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/58" | ||
}, | ||
"pathString": "/1/2/58/68/", | ||
"depth": 3, | ||
"childCount": 0, | ||
"remoteId": "b8cc4627dbc3ca693c85b6b06a8f7492", | ||
"Children": { | ||
"_media-type": "application/vnd.ibexa.api.LocationList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/58/68/children" | ||
}, | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.Content+json", | ||
"_href": "/api/ibexa/v2/content/objects/67" | ||
}, | ||
"sortField": "PUBLISHED", | ||
"sortOrder": "DESC", | ||
"UrlAliases": { | ||
"_media-type": "application/vnd.ibexa.api.UrlAliasRefList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/58/68/urlaliases" | ||
}, | ||
"ContentInfo": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/67", | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/67", | ||
"_remoteId": "180adb876af5755d65c1a362fcd619c8", | ||
"_id": 67, | ||
"ContentType": { | ||
"_media-type": "application/vnd.ibexa.api.ContentType+json", | ||
"_href": "/api/ibexa/v2/content/types/45" | ||
}, | ||
"Name": "Tip1", | ||
"TranslatedName": "Tip1", | ||
"Versions": { | ||
"_media-type": "application/vnd.ibexa.api.VersionList+json", | ||
"_href": "/api/ibexa/v2/content/objects/67/versions" | ||
}, | ||
"CurrentVersion": { | ||
"_media-type": "application/vnd.ibexa.api.Version+json", | ||
"_href": "/api/ibexa/v2/content/objects/67/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/67/locations" | ||
}, | ||
"Owner": { | ||
"_media-type": "application/vnd.ibexa.api.User+json", | ||
"_href": "/api/ibexa/v2/user/users/14" | ||
}, | ||
"lastModificationDate": "2021-06-28T11:36:21+00:00", | ||
"publishedDate": "2021-06-28T11:36:21+00:00", | ||
"mainLanguageCode": "eng-GB", | ||
"currentVersionNo": 1, | ||
"alwaysAvailable": true, | ||
"isHidden": false, | ||
"status": "PUBLISHED", | ||
"ObjectStates": { | ||
"_media-type": "application/vnd.ibexa.api.ContentObjectStates+json", | ||
"_href": "/api/ibexa/v2/content/objects/67/objectstates" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"_media-type": "application/vnd.ibexa.api.Bookmark+json", | ||
"__href": "/api/ibexa/v2/bookmark/59", | ||
"Location": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/59", | ||
"id": 59, | ||
"priority": 0, | ||
"hidden": false, | ||
"invisible": false, | ||
"explicitlyHidden": false, | ||
"ParentLocation": { | ||
"_media-type": "application/vnd.ibexa.api.Location+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2" | ||
}, | ||
"pathString": "/1/2/59/", | ||
"depth": 2, | ||
"childCount": 3, | ||
"remoteId": "fd949fc2eed1fff847d73021ff1a6ea9", | ||
"Children": { | ||
"_media-type": "application/vnd.ibexa.api.LocationList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/59/children" | ||
}, | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.Content+json", | ||
"_href": "/api/ibexa/v2/content/objects/58" | ||
}, | ||
"sortField": "PATH", | ||
"sortOrder": "ASC", | ||
"UrlAliases": { | ||
"_media-type": "application/vnd.ibexa.api.UrlAliasRefList+json", | ||
"_href": "/api/ibexa/v2/content/locations/1/2/59/urlaliases" | ||
}, | ||
"ContentInfo": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/58", | ||
"Content": { | ||
"_media-type": "application/vnd.ibexa.api.ContentInfo+json", | ||
"_href": "/api/ibexa/v2/content/objects/58", | ||
"_remoteId": "00b513aae54036a16e00fb3365c4b5f3", | ||
"_id": 58, | ||
"ContentType": { | ||
"_media-type": "application/vnd.ibexa.api.ContentType+json", | ||
"_href": "/api/ibexa/v2/content/types/1" | ||
}, | ||
"Name": "Dog Breed Catalog", | ||
"TranslatedName": "Dog Breed Catalog", | ||
"Versions": { | ||
"_media-type": "application/vnd.ibexa.api.VersionList+json", | ||
"_href": "/api/ibexa/v2/content/objects/58/versions" | ||
}, | ||
"CurrentVersion": { | ||
"_media-type": "application/vnd.ibexa.api.Version+json", | ||
"_href": "/api/ibexa/v2/content/objects/58/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/58/locations" | ||
}, | ||
"Owner": { | ||
"_media-type": "application/vnd.ibexa.api.User+json", | ||
"_href": "/api/ibexa/v2/user/users/14" | ||
}, | ||
"lastModificationDate": "2021-06-28T11:23:10+00:00", | ||
"publishedDate": "2021-06-28T11:23:10+00:00", | ||
"mainLanguageCode": "eng-GB", | ||
"currentVersionNo": 1, | ||
"alwaysAvailable": true, | ||
"isHidden": false, | ||
"status": "PUBLISHED", | ||
"ObjectStates": { | ||
"_media-type": "application/vnd.ibexa.api.ContentObjectStates+json", | ||
"_href": "/api/ibexa/v2/content/objects/58/objectstates" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.