@hoodie/account-server
Version:
Account JSON API backed by PouchDB
44 lines (43 loc) • 864 B
JSON
{
"links": {
"self": "http://localhost:80/session"
},
"data": {
"id": "cGF0LWRvZTpCQkZFMzg4MDqp7ppCNngda1JMi7XcyhtaUxf2nA",
"type": "session",
"relationships": {
"account": {
"links": {
"related": "http://localhost:80/session/account"
},
"data": {
"id": "userid123",
"type": "account"
}
}
}
},
"included": [
{
"id": "userid123",
"type": "account",
"attributes": {
"username": "pat-doe",
"roles": [
"mycustomrole"
]
},
"relationships": {
"profile": {
"links": {
"related": "http://localhost:80/session/account/profile"
},
"data": {
"id": "userid123-profile",
"type": "profile"
}
}
}
}
]
}