* Registry: specified naming restrictions for usernames and repository names

This commit is contained in:
Solomon Hykes 2013-05-24 18:58:24 -07:00
parent bb4b35a892
commit df23a1e675
1 changed files with 6 additions and 1 deletions

View File

@ -301,7 +301,7 @@ POST /v1/users
{"email": "sam@dotcloud.com", "password": "toto42", "username": "foobar"'} {"email": "sam@dotcloud.com", "password": "toto42", "username": "foobar"'}
**Validation**: **Validation**:
- **username** : min 4 character, max 30 characters, all lowercase no special characters. - **username** : min 4 character, max 30 characters, must match the regular expression [a-z0-9_].
- **password**: min 5 characters - **password**: min 5 characters
**Valid**: return HTTP 200 **Valid**: return HTTP 200
@ -345,6 +345,11 @@ GET /v1/users
The Registry does not know anything about users. Even though repositories are under usernames, its just a namespace for the registry. Allowing us to implement organizations or different namespaces per user later, without modifying the Registrys API. The Registry does not know anything about users. Even though repositories are under usernames, its just a namespace for the registry. Allowing us to implement organizations or different namespaces per user later, without modifying the Registrys API.
The following naming restrictions apply:
- Namespaces must match the same regular expression as usernames (See 4.2.1.)
- Repository names must match the regular expression [a-zA-Z0-9-_.]
4.3.1 Get all tags 4.3.1 Get all tags
^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^