UNPKG

@hoodie/account-server

Version:
56 lines (55 loc) 1.3 kB
{ "links": { "self": "http://localhost:80/accounts", "first": "http://localhost:80/accounts", "last": "http://localhost:80/accounts" }, "data": [ { "id": "abc4567", "type": "account", "links": { "self": "http://localhost:80/accounts/abc4567" }, "attributes": { "username": "pat-doe", "createdAt": "1970-01-01T00:00:00.000Z", "signedUpAt": "1970-01-01T00:00:00.000Z" }, "relationships": { "profile": { "links": { "related": "http://localhost:80/accounts/abc4567/profile" }, "data": { "id": "abc4567-profile", "type": "profile" } } } }, { "id": "def678", "type": "account", "links": { "self": "http://localhost:80/accounts/def678" }, "attributes": { "username": "sam", "createdAt": "1970-01-01T00:00:00.000Z", "signedUpAt": "1970-01-01T00:00:00.000Z" }, "relationships": { "profile": { "links": { "related": "http://localhost:80/accounts/def678/profile" }, "data": { "id": "def678-profile", "type": "profile" } } } } ] }