]> git.defcon.no Git - hermes/blobdiff - doc/api-nodes.txt
Merge http://home.defcon.no/testing/hermes-mediator
[hermes] / doc / api-nodes.txt
index 2d6e76acac149da1687f345c96919a87f66e3ce3..9d0e347bf43ca577530cc9a1f778ecf5f763761b 100644 (file)
@@ -90,6 +90,14 @@ user/remove?user=foo@bar.bz
 
        Returns 'ok' on success.
 
+user/available?username=foo&domain=bar
+user/available?user=foo@bar.bz
+       Tests an address to see if it is available.
+
+       Returns 'ok' with 'cause' = 'nonexistant' if the address is available.
+
+       Returns 'failed' with 'cause' = 'exists' if the address is in use.
+
 user/gen_pw
        Generates a random password on the same form as that used by
        user/add_local. 
@@ -241,9 +249,6 @@ Permissions! (user/permissions?user=...)
 
 authentication-mechanism :)
 
-Add collision prevention for users, make sure that no user can be added when the user
-address would overlap/collide with a valid alias-address
-
 Change all GET to POST
 
 Implement test-tool for POST-based communication ;)