We need support a client-generated ID for our account for Hoodie, as the account ID will be set to hoodie.id, and hoodie.id gets generated upon first initialisation. JSON API explicitly supports client-generated resource IDs
So what we want is this
var account = new Account({
url: 'https://example.com/api'
id: 'abc4567'
})
account.signUp({
username: 'pat',
password: 'secret'
})
We need support a client-generated ID for our account for Hoodie, as the account ID will be set to
hoodie.id
, andhoodie.id
gets generated upon first initialisation. JSON API explicitly supports client-generated resource IDsSo what we want is this
to send this request