]> dev.renevier.net Git - syp.git/blobdiff - devdoc/api.txt
web interface to add co-administrators
[syp.git] / devdoc / api.txt
index e02b78dc8872a4c24762f7d2b8fdfe205339350b..8cc6fefa376b72952f3d88ecc27007e380190fc3 100644 (file)
@@ -20,6 +20,14 @@ but server may be written in any language.
 ## auth
  asks for authentication
 
 ## auth
  asks for authentication
 
+## newuser
+ adds a new user
+ * `$_POST ["newuser_name"]` must contain user name
+ * `$_POST ["newuser_password"]` must contain user password
+
+ Only admin can add new users.
+
+
 ## add
  adds a new feature
 
 ## add
  adds a new feature
 
@@ -71,12 +79,16 @@ as _text/html_
  * `toobig`: uploaded file was too big
  * `notation`: uploaded file was not an image
  * `nochange`: when trying to update a feature, there is nothing to update (ie: no field of the feature has changed)
  * `toobig`: uploaded file was too big
  * `notation`: uploaded file was not an image
  * `nochange`: when trying to update a feature, there is nothing to update (ie: no field of the feature has changed)
+ * `newuser_exists`: when trying to add an user which has the same name as an already registered user
 
 ## success handling:
 
  * `<success request="auth"><user>?user_name?</name></success>`:
      authentication was successfull. ?user_name? is name of authenticated user.
 
 
 ## success handling:
 
  * `<success request="auth"><user>?user_name?</name></success>`:
      authentication was successfull. ?user_name? is name of authenticated user.
 
+ * `<success request="newuser"><user>?user_name?</name></success>`:
+     new user addition was successfull. ?user_name? is name of newly added user.
+
  * `<success request="del">
      <feature>
         <id>?id?</id>
  * `<success request="del">
      <feature>
         <id>?id?</id>