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

Org vs non-org API endpoints #7

Open
idokleinman opened this issue Apr 9, 2015 · 2 comments
Open

Org vs non-org API endpoints #7

idokleinman opened this issue Apr 9, 2015 · 2 comments

Comments

@idokleinman
Copy link
Contributor

From @towynlin on February 24, 2015 22:9

Three endpoints are the same regardless of whether the app is for an organization.

  • Login: POST /oauth/token
  • Create claim code: POST /v1/device_claims (as of Feb 24, need to fix in app & API)
  • List devices: GET /v1/devices

However, one API endpoint will be different between a generic Spark user context and in the context of an organization.

User Sign Up

Conceptually, is the user signing up for a Spark account or to be a customer of the other organization?

For an organization:

POST /v1/orgs/mycompany/customers

[email protected]&password=7he$ecret

For generic Spark users:

POST /v1/users

[email protected]&password=7he$ecret

Copied from original issue: spark/mobile-sdk-ios#59

@idokleinman
Copy link
Contributor Author

  • User login endpoint
  • Claim code endpoint
  • Reset password endpoint

@idokleinman
Copy link
Contributor Author

This issue was moved to #5

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

No branches or pull requests

1 participant