Validates potential new user names for a number of criteria.
This provides a simple API can check whether a given username is available for use in Carina, and mark a username as having been used, to ensure future availability checks remain accurate.
$ docker-compose build$ docker-compose upThe service consists of a Node.js container running node-restify and a Redis container.
Returns status code 200 and no output if the provided username is valid.
Returns status code 409 if the provided username is invalid. Also includes JSON output with the reason for the failure.
{
"status": "error",
"message": "The provided username already exists."
}Expects a JSON payload.
{
"username": "john.q.smith@gmail.com"
}Also does all the same validation as GET /validate/:username.
Return status code 202 if the username was valid and successfully saved. This has no external effect other than marking the username as taken within this specific service.
Returns status code 409 if the provided username is invalid. Also includes JSON output with the reason for the failure.
{
"status": "error",
"message": "The provided username already exists."
}