-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove /session/account from spec #14
Comments
Hey! |
Yeah good point ... First I was thinking: how about we prefix |
Yeah, let's see what other people's opinion is, would be nice to hear from somebody that can look at it with a new perspective, we're too close to it to appreciate if something is too complex. Also if we're going to move from |
to summarize this for people new to this spec. This is what we have today:
This is what we would suggest instead
For sign up, a new user would send I like the change, I think it makes things simpler to understand. I think with the current spec we tried to be smart, and I think it is smart, but that doesn’t make it simple. |
Now that I see it like that, I like the second option much better, most of the questions we had with JSON API, where we had to guess the answers were because of the uncommon Just one thing, how do users know about their ids? I guess they'll get that information when requesting the session? |
Yes. Or when creating an account. Optionally |
I like the proposed new API! I also have a healthy dollop of respect for the old Might it be possible to retain /session/account, and have it redirect to the canonical? |
thanks for the feedback @rektide! Maybe one way to think of this is that our Account JSON API Spec is like a minimal common dominator of implementations. If you decide to implement it, you can add own routes, as long as you remain compatible with the core spec. That we we could leave ideas like Would that make sense? |
Now that I'm implementing the
account-json-api
spec, I find the/session/account
route confusing, because an account can exist and be accessible even without a session. For example, a user can signed up for an account but not sign in until the account is confirmed.For that reason, I'd suggest to rename
/session/account
to/account
, and/session/account/profile
to/account/profile
Update
We now suggest to get rid of
/session/account
altogether, and use/accounts/{id}
insteadThe text was updated successfully, but these errors were encountered: