-
Notifications
You must be signed in to change notification settings - Fork 1k
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
DOCUMENTATION - Creating a new user method HTTP method is wrong #4642
Comments
PUT should not create a new database but a new user document The URL is Maybe we should assert or include that we are assuming in the documentation that Good point however that this needs an admin user and admin password. That is mentioned above in Authentication Database but that may be easy to miss so showing it in the example would make it easier to see. |
Hello,
I've found an error on the documentation section 1.5.2.2. Creating a New User.
It is said "Creating a new user is a very trivial operation. You just need to do a PUT request with the user’s data to CouchDB"
This is wrong, since the PUT method will try to create the _users database. The correct HTTP method is POST.
Please correct this typo in the documentation.
As a suggestion, it would help to explicitly include in this documentation section that this call must be done with an admin user. Consider including in the curl example something like this:
The text was updated successfully, but these errors were encountered: