summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2019-06-28 16:26:39 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2019-06-28 16:26:39 +0200
commit57103830cc64694158a36b24a873427ce7dc978e (patch)
treeb32850a22ec65ed7910244a3f703ba05c9169dc8
parent6ce3a234e3c64f7165b4bd72da14faad10a03377 (diff)
downloaddocs-57103830cc64694158a36b24a873427ce7dc978e.tar.gz
docs-57103830cc64694158a36b24a873427ce7dc978e.tar.bz2
docs-57103830cc64694158a36b24a873427ce7dc978e.zip
link django
-rw-r--r--api-bank.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/api-bank.rst b/api-bank.rst
index bdf99a1..b782ca5 100644
--- 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;
}