Changes rules for names in templates

Now valid names can start with numbers and can contain dashes (-).
Closes #306
This commit is contained in:
Raul Ochoa
2015-06-04 10:41:40 -04:00
parent 7c315b3afd
commit 3f0d344313
3 changed files with 45 additions and 25 deletions
+1 -1
View File
@@ -404,7 +404,7 @@ POST /api/v1/map/named
##### Arguments
- **name**: There can be at most _one_ template with the same name for any user. Valid names start with a letter, and only contain letters, numbers, or underscores (_).
- **name**: There can be at most _one_ template with the same name for any user. Valid names start with a letter or a number, and only contain letters, numbers, dashes (-) or underscores (_).
- **auth**:
- **method** `"token"` or `"open"` (the default if no `"method"` is given).
- **valid_tokens** when `"method"` is set to `"token"`, the values listed here allow you to instantiate the named map.