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

[150] Drone Series - Update user registration api #7

Closed
gondzo opened this issue Dec 8, 2016 · 1 comment
Closed

[150] Drone Series - Update user registration api #7

gondzo opened this issue Dec 8, 2016 · 1 comment

Comments

@gondzo
Copy link
Contributor

gondzo commented Dec 8, 2016

The current registration api creates only the User object, but provider endpoints require user.provider object to be filled in. In this challenge, you should do the following:

  1. Modify the api to require provider data when role is 'provider' and to create the Provider object for the new user. This needs to be done for form registration only, social login should always register 'consumer' role. Update the swagger.yaml file too
  2. Update the registration page in dsp-app (frontend) - add a choice for registering as consumer or provider. In case provider is selected, allow the user to enter the fields for the Provider data model. You can add only the required fields for now.

Verify that provider endpoints can be called with a new provider user (for example POST /provider/drones). Postman api calls can be used for verification.

@gondzo
Copy link
Contributor Author

gondzo commented Dec 8, 2016

Challenge created successfully
Challenge Url: https://www.topcoder.com/challenge-details/30055922/?type=develop&noncache=true

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