commit 57103830cc64694158a36b24a873427ce7dc978e parent 6ce3a234e3c64f7165b4bd72da14faad10a03377 Author: Marcello Stanisci <stanisci.m@gmail.com> Date: Fri, 28 Jun 2019 16:26:39 +0200 link django Diffstat:
| M | api-bank.rst | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/api-bank.rst b/api-bank.rst @@ -32,7 +32,7 @@ This API provides programmatic user registration at the bank. :status 200 OK: The new user has been correctly registered. :status 409 Conflict: the username requested by the client is not available anymore -:status 406 Not Acceptable: unacceptable characters were given as username / password. See https://docs.djangoproject.com/en/2.2/ref/contrib/auth/#django.contrib.auth.models.User.username for the accepted character set. +:status 406 Not Acceptable: unacceptable characters were given for the username. See https://docs.djangoproject.com/en/2.2/ref/contrib/auth/#django.contrib.auth.models.User.username for the accepted character set. **Details** @@ -41,10 +41,12 @@ This API provides programmatic user registration at the bank. interface BankRegistrationRequest { - // Username to use for registration. + // Username to use for registration; max length is 150 chars. username: string; - // Password to associate with the username. + // Password to associate with the username. Any characters and + // any length are valid; next releases will enforce a minimum length + // and a safer characters choice. password: string; }