# HG changeset patch # User Emmanuel Gil Peyrot # Date 1623857563 -7200 # Node ID 1da63fe35ef3614a2af210f12984498c990ef46d # Parent b65a363d32d2ee7aca42012e6654f55dc0cb56ed mod_auth_http: Format README better diff -r b65a363d32d2 -r 1da63fe35ef3 mod_auth_http/README.markdown --- a/mod_auth_http/README.markdown Tue Jun 15 18:16:07 2021 +0200 +++ b/mod_auth_http/README.markdown Wed Jun 16 17:32:43 2021 +0200 @@ -58,54 +58,13 @@ of `501 Not Implemented`, but other error codes will also be handled by Prosody. -### register - -**HTTP method:** -: POST - -**Success codes:** -: 201 - -**Error codes:** -: 409 (user exists) - -### check_password - -**HTTP method:** -: GET - -**Success codes:** -: 200 - -**Response:** -: A text string of `true` if the user exists, or `false` otherwise. - -### user_exists - -**HTTP method:** -: GET - -**Success codes:** -: 200 - -**Response:** -: A text string of `true` if the user exists, or `false` otherwise. - -### set_password - -**HTTP method:** -: POST - -**Success codes:** -: 200, 201, or 204 - -### remove_user - -**HTTP method:** -: POST - -**Success codes:** -: 200, 201 or 204 + Method HTTP method Success codes Error codes Response + -------- ---- --- ----------------- ----------------------------------------------------------------- + register POST 201 409 (user exists) + check\_password GET 200 A text string of `true` if the user exists, or `false` otherwise. + user\_exists GET 200 A text string of `true` if the user exists, or `false` otherwise. + set\_password POST 200, 201 or 204 + remove\_user POST 200, 201 or 204 ## Examples