Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST: Unescape slashes in JSON examples #2567

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
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
@@ -1,93 +1,113 @@
{
"Root": {
"_media-type": "application/vnd.ibexa.api.Root+json",
"_media-type": "application\/vnd.ibexa.api.Root+json",
"content": {
"_href": "/api/ibexa/v2/content/objects",
"_media-type": ""
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/objects"
},
"contentByRemoteId": {
"_href": "/api/ibexa/v2/content/objects{?remoteId}",
"_media-type": ""
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/objects{?remoteId}"
},
"contentTypeByIdentifier": {
"_href": "/api/ibexa/v2/content/types{?identifier}",
"_media-type": ""
"contentTypes": {
"_media-type": "application\/vnd.ibexa.api.ContentTypeInfoList+json",
"_href": "\/api\/ibexa\/v2\/content\/types"
},
"contentTypeGroupByIdentifier": {
"_href": "/api/ibexa/v2/content/typegroups{?identifier}",
"_media-type": ""
"contentTypeByIdentifier": {
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/types{?identifier}"
},
"contentTypeGroups": {
"_href": "/api/ibexa/v2/content/typegroups",
"_media-type": "application/vnd.ibexa.api.ContentTypeGroupList+json"
"_media-type": "application\/vnd.ibexa.api.ContentTypeGroupList+json",
"_href": "\/api\/ibexa\/v2\/content\/typegroups"
},
"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"
"contentTypeGroupByIdentifier": {
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/typegroups{?identifier}"
},
"globalUrlAliases": {
"_href": "/api/ibexa/v2/content/urlaliases",
"_media-type": "application/vnd.ibexa.api.UrlAliasRefList+json"
"users": {
"_media-type": "application\/vnd.ibexa.api.UserRefList+json",
"_href": "\/api\/ibexa\/v2\/user\/users"
},
"locationByPath": {
"_href": "/api/ibexa/v2/content/locations{?locationPath}",
"_media-type": ""
"usersByRoleId": {
"_media-type": "application\/vnd.ibexa.api.UserRefList+json",
"_href": "\/api\/ibexa\/v2\/user\/users{?roleId}"
},
"locationByRemoteId": {
"_href": "/api/ibexa/v2/content/locations{?remoteId}",
"_media-type": ""
"usersByRemoteId": {
"_media-type": "application\/vnd.ibexa.api.UserRefList+json",
"_href": "\/api\/ibexa\/v2\/user\/users{?remoteId}"
},
"objectStateGroups": {
"_href": "/api/ibexa/v2/content/objectstategroups",
"_media-type": "application/vnd.ibexa.api.ObjectStateGroupList+json"
"usersByEmail": {
"_media-type": "application\/vnd.ibexa.api.UserRefList+json",
"_href": "\/api\/ibexa\/v2\/user\/users{?email}"
},
"objectStates": {
"_href": "/api/ibexa/v2/content/objectstategroups/{objectStateGroupId}/objectstates",
"_media-type": "application/vnd.ibexa.api.ObjectStateList+json"
"usersByLogin": {
"_media-type": "application\/vnd.ibexa.api.UserRefList+json",
"_href": "\/api\/ibexa\/v2\/user\/users{?login}"
},
"roles": {
"_href": "/api/ibexa/v2/user/roles",
"_media-type": "application/vnd.ibexa.api.RoleList+json"
"_media-type": "application\/vnd.ibexa.api.RoleList+json",
"_href": "\/api\/ibexa\/v2\/user\/roles"
},
"rootLocation": {
"_href": "/api/ibexa/v2/content/locations/1/2",
"_media-type": "application/vnd.ibexa.api.Location+json"
"_media-type": "application\/vnd.ibexa.api.Location+json",
"_href": "\/api\/ibexa\/v2\/content\/locations\/1\/2"
},
"rootUserGroup": {
"_media-type": "application\/vnd.ibexa.api.UserGroup+json",
"_href": "\/api\/ibexa\/v2\/user\/groups\/1\/5"
},
"rootMediaFolder": {
"_href": "/api/ibexa/v2/content/locations/1/43",
"_media-type": "application/vnd.ibexa.api.Location+json"
"_media-type": "application\/vnd.ibexa.api.Location+json",
"_href": "\/api\/ibexa\/v2\/content\/locations\/1\/43"
},
"rootUserGroup": {
"_href": "/api/ibexa/v2/user/groups/1/5",
"_media-type": "application/vnd.ibexa.api.UserGroup+json"
"locationByRemoteId": {
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/locations{?remoteId}"
},
"sections": {
"_href": "/api/ibexa/v2/content/sections",
"_media-type": "application/vnd.ibexa.api.SectionList+json"
"locationByPath": {
"_media-type": "",
"_href": "\/api\/ibexa\/v2\/content\/locations{?locationPath}"
},
"trash": {
"_href": "/api/ibexa/v2/content/trash",
"_media-type": "application/vnd.ibexa.api.Trash+json"
"_media-type": "application\/vnd.ibexa.api.Trash+json",
"_href": "\/api\/ibexa\/v2\/content\/trash"
},
"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"
"sections": {
"_media-type": "application\/vnd.ibexa.api.SectionList+json",
"_href": "\/api\/ibexa\/v2\/content\/sections"
},
"views": {
"_href": "/api/ibexa/v2/views",
"_media-type": "application/vnd.ibexa.api.RefList+json"
"_media-type": "application\/vnd.ibexa.api.RefList+json",
"_href": "\/api\/ibexa\/v2\/views"
},
"objectStateGroups": {
"_media-type": "application\/vnd.ibexa.api.ObjectStateGroupList+json",
"_href": "\/api\/ibexa\/v2\/content\/objectstategroups"
},
"objectStates": {
"_media-type": "application\/vnd.ibexa.api.ObjectStateList+json",
"_href": "\/api\/ibexa\/v2\/content\/objectstategroups\/{objectStateGroupId}\/objectstates"
},
"globalUrlAliases": {
"_media-type": "application\/vnd.ibexa.api.UrlAliasRefList+json",
"_href": "\/api\/ibexa\/v2\/content\/urlaliases"
},
"urlWildcards": {
"_media-type": "application\/vnd.ibexa.api.UrlWildcardList+json",
"_href": "\/api\/ibexa\/v2\/content\/urlwildcards"
},
"createSession": {
"_media-type": "application\/vnd.ibexa.api.UserSession+json",
"_href": "\/api\/ibexa\/v2\/user\/sessions"
},
"refreshSession": {
"_media-type": "application\/vnd.ibexa.api.UserSession+json",
"_href": "\/api\/ezp\/v2\/user\/sessions\/{sessionId}\/refresh"
"_href": "\/api\/ibexa\/v2\/user\/sessions\/{sessionId}\/refresh"
},
"createToken": {
"_media-type": "application\/vnd.ibexa.api.JWT+json",
"_href": "\/api\/ibexa\/v2\/user\/token\/jwt"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
<?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"/>
<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"/>
<usersByRoleId media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users{?roleId}"/>
<usersByRemoteId media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users{?remoteId}"/>
<usersByEmail media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users{?email}"/>
<usersByLogin media-type="application/vnd.ibexa.api.UserRefList+xml" href="/api/ibexa/v2/user/users{?login}"/>
<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"/>
<createToken media-type="application/vnd.ibexa.api.JWT+xml" href="/api/ibexa/v2/user/token/jwt"/>
</Root>
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"ActivityLogGroupList": {
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroupList+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroupList+json",
"_href": "\/api\/ibexa\/v2\/activity-log-group\/list",
"ActivityLogGroups": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroup+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroup+json",
"user_id": 14,
"logged_at": 1707478796,
"ActivityLogEntries": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "396",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "create",
"data": {}
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "396",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "publish",
Expand All @@ -25,19 +25,19 @@
]
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroup+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroup+json",
"user_id": 14,
"logged_at": 1707475048,
"ActivityLogEntries": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "395",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "create",
"data": {}
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "395",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "publish",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"ActivityLogGroupList": {
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroupList+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroupList+json",
"_href": "\/api\/ibexa\/v2\/activity-log-group\/list",
"ActivityLogGroups": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroup+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroup+json",
"user_id": 14,
"logged_at": 1707478796,
"ActivityLogEntries": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "396",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "create",
"data": {}
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "396",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "publish",
Expand All @@ -25,19 +25,19 @@
]
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLogGroup+json",
"_media-type": "application/vnd.ibexa.api.ActivityLogGroup+json",
"user_id": 14,
"logged_at": 1707475048,
"ActivityLogEntries": [
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "395",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "create",
"data": {}
},
{
"_media-type": "application\/vnd.ibexa.api.ActivityLog+json",
"_media-type": "application/vnd.ibexa.api.ActivityLog+json",
"object_id": "395",
"object_class": "Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Content",
"action": "publish",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"Cart": {
"_media-type": "application\/vnd.ibexa.api.Cart+json",
"_media-type": "application/vnd.ibexa.api.Cart+json",
"id": 1,
"identifier": "e79b5dba-c701-4c64-8032-73719a513e50",
"name": "Default",
"createdAt": "2024-09-26T09:16:56+00:00",
"updatedAt": "2024-09-26T09:16:56+00:00",
"owner": {
"_media-type": "application\/vnd.ibexa.api.User+json",
"_media-type": "application/vnd.ibexa.api.User+json",
"_href": "\/api\/ibexa\/v2\/user\/users\/10"
},
"Currency": {
"_media-type": "application\/vnd.ibexa.api.Currency+json",
"_media-type": "application/vnd.ibexa.api.Currency+json",
"id": 2,
"code": "EUR",
"subunits": 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Token": {
"_media-type": "application\/vnd.ibexa.api.Token+json",
"_media-type": "application/vnd.ibexa.api.Token+json",
"value": "7b19308.RiDPaorwmJRyQoGajJiLMp843r30WaW-PH1CeH4oQyU.dkOXWOuFrvBfDPXY1t27YMx0hvyFH8fPUwoDNRl_D0sWDb4O3bb-20Q32A"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"CartConstraintViolationList": {
"_media-type": "application\/vnd.ibexa.api.CartConstraintViolationList+json",
"_media-type": "application/vnd.ibexa.api.CartConstraintViolationList+json",
"violations": []
}
}
Loading
Loading