We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There are three types of roles: user, admin and moderator. If the role is not set, it should default to user.
POST /users Request schema 1
{ "email": "[email protected]" }
Response schema 1 Status 201: Return if the user was successfully created.
{ "self": "http://localhost:8090/api/users/{user_id}", "email": "[email protected]", "role": "user" }
Request schema 2
{ "email": "[email protected]", "role": "moderator" }
Response schema 2
{ "self": "http://localhost:8090/api/users/{user_id}", "email": "[email protected]", "role": "moderator" }
Status 400 Return if the input is invalid (e.g. invalid role name).
Note
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There are three types of roles: user, admin and moderator. If the role is not set, it should default to user.
POST /users
Request schema 1
Response schema 1
Status 201: Return if the user was successfully created.
Request schema 2
Response schema 2
Status 400 Return if the input is invalid (e.g. invalid role name).
Note
The text was updated successfully, but these errors were encountered: