Merge pull request #1971 from hb9cwp/patch-2

REST API example needs additional parameter
This commit is contained in:
Jeremy Grossmann authored and GitHub committed 2021-09-09 23:03:15 -07:00
commit 4916567ff6
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ async def authenticate(
) -> schemas.Token:
"""
Alternative authentication method using json.
Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"}'
Example: curl http://host:port/v3/users/authenticate -d '{"username": "admin", "password": "admin"} -H "Content-Type: application/json" '
"""
user = await users_repo.authenticate_user(username=user_credentials.username, password=user_credentials.password)