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
HTTP POST request to http://localhost:8090/api/users should create a new user.
{ "username":"admin", "email" : "admin@letmehack.lk" “password”: “password” }
If the password is not set, you should randomly generate a password in the backend.
Status 201: Return if the user was successfully created.
{ “self”: “http://localhost:8090/api/users/{user_id}”, “email”: “admin@letmehack.lk” }
Status 400: Return if email is not set.
Status 409: If the user already exists.
{ "status": 409, "message": "An user with email: {email} already exists.", "developerMessage": "User creation failed because the email: {email} already exists." }
{ "username":"admin", “email”: “admin@letmehack.lk” }
Here the password is not set.
{ “self”: “http://localhost:8090/api/users/{user_id}” “email”: “admin@letmehack.lk” }
Note Placeholders {email}, {user_id} should contain actual values. It's recommended that you use UUID as the primary key.
The text was updated successfully, but these errors were encountered:
OmalPerera
No branches or pull requests
HTTP POST request to http://localhost:8090/api/users should create a new user.
Request schema #1:
If the password is not set, you should randomly generate a password in the backend.
Response schemas:
Status 201: Return if the user was successfully created.
Status 400: Return if email is not set.
Status 409: If the user already exists.
Request schema #2
Here the password is not set.
Response schema
Status 201: Return if the user was successfully created.
Note
Placeholders {email}, {user_id} should contain actual values.
It's recommended that you use UUID as the primary key.
The text was updated successfully, but these errors were encountered: