Skip to content
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

Can we get rid of the /apps section? #4

Open
shea256 opened this issue Dec 8, 2016 · 3 comments
Open

Can we get rid of the /apps section? #4

shea256 opened this issue Dec 8, 2016 · 3 comments

Comments

@shea256
Copy link
Contributor

shea256 commented Dec 8, 2016

@jcnelson do you think we can get rid of the apps section and just use the /resources section for resource calls and focus on making the creation of a /stores as the equivalent of creating an app record for the user?

@jcnelson
Copy link

jcnelson commented Dec 8, 2016

I can get behind making /resources its own top-level route.

I'm not sure I agree with making /stores a top-level collection. I see the "root" of an application's state as a user, which has a datastore, a keypair, a default session lifetime, a set of API method calls the user can make, and so on as properties. We can stop giving stores a separate :storeID, however, if you want there to be a 1-to-1 correspondence with users (in doing so, we'd also drop the methods for creating and deleting stores, since that would happen as part of creating and deleting the user).

@shea256
Copy link
Contributor Author

shea256 commented Dec 8, 2016

Oh I don't mean we should make /stores a top-level collection.

I actually meant that "Get all app accounts" (GET /users/{userID}/app) can be replaced with "Get all stores".

@shea256
Copy link
Contributor Author

shea256 commented Dec 8, 2016

We can stop giving stores a separate :storeID, however, if you want there to be a 1-to-1 correspondence with users (in doing so, we'd also drop the methods for creating and deleting stores, since that would happen as part of creating and deleting the user).

Yes I like this. Each app-user-pair would be unique and this would be reflected in the path, which has both the user ID and the app ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants