Skip to content

Commit 0e47fea

Browse files
authored
IBX-8811: Rebranded session creation example (#194)
1 parent e561096 commit 0e47fea

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"Session": {
3-
"_media-type": "application/vnd.ibexa.api.Session",
4-
"name": "eZSSID",
5-
"identifier": "go327ij2cirpo59pb6rrv2a4el2",
6-
"csrfToken": "23lkneri34ijajedfw39orj3j93",
3+
"_media-type": "application/vnd.ibexa.api.Session+json",
4+
"_href": "/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ",
5+
"name": "IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV",
6+
"identifier": "ABCDEFGHIJKLMNOPQRSTUVWXYZ",
7+
"csrfToken": "0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq",
78
"User": {
8-
"_href": "/user/users/14",
9-
"_media-type": "application/vnd.ibexa.api.User+json"
9+
"_media-type": "application/vnd.ibexa.api.User+json",
10+
"_href": "/api/ibexa/v2/user/users/14"
1011
}
1112
}
1213
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<Session href="/user/sessions/sessionID" media-type="application/vnd.ibexa.api.Session+xml">
3-
<name>eZSSID</name>
4-
<identifier>go327ij2cirpo59pb6rrv2a4el2</identifier>
5-
<csrfToken>23lkneri34ijajedfw39orj3j93</csrfToken>
6-
<User href="/user/users/14" media-type="vnd.ibexa.api.User+xml"/>
2+
<Session media-type="application/vnd.ibexa.api.Session+xml" href="/api/ibexa/v2/user/sessions/ABCDEFGHIJKLMNOPQRSTUVWXYZ">
3+
<name>IBX_SESSION_ID0123456789ABCDEFGHIJKLMNOPQRSTUV</name>
4+
<identifier>ABCDEFGHIJKLMNOPQRSTUVWXYZ</identifier>
5+
<csrfToken>0123456789ABCDEF.GHIJKLMNOP_QRSTUVWXYZabcdefghijklmnopqrstuv.wxyz0123456-789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopq</csrfToken>
6+
<User media-type="application/vnd.ibexa.api.User+xml" href="/api/ibexa/v2/user/users/14"/>
77
</Session>

src/bundle/Resources/api_platform/examples/user/sessions/POST/SessionInput.json.example

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"SessionInput": {
3-
"_media-type": "application/vnd.ibexa.api.SessionInput",
43
"login": "admin",
54
"password": "secret"
65
}

0 commit comments

Comments
 (0)