@hoodie/account-server
Version:
Account JSON API backed by PouchDB
37 lines (36 loc) • 710 B
JSON
{
"links": {
"self": "http://localhost:80/session/account"
},
"data": {
"id": "userid123",
"type": "account",
"attributes": {
"username": "pat-doe"
},
"relationships": {
"profile": {
"links": {
"related": "http://localhost:80/session/account/profile"
},
"data": {
"id": "userid123-profile",
"type": "profile"
}
}
}
},
"included": [
{
"id": "userid123-profile",
"type": "profile",
"attributes": {
"fullName": "pat Doe",
"email": "pat@example.com"
},
"links": {
"self": "http://localhost:80/session/account/profile"
}
}
]
}