POST User
Used to create a new user
URL : /api.php/user/
Method : POST
Auth required : NO
Data constraints
{
"USER_LOGIN":"[login which does not already exists]",
"USER_PASSWORD":"[encrypted password]",
"USER_EMAIL":"[valid email address]",
"USER_ROLE":"[int corresponding to the role of the user]",
"USER_FIRSTNAME":"[First name of the user]",
"USER_LASTNAME":"[Last name of the user]"
}
Data example
{
"USER_LOGIN":"test",
"USER_PASSWORD":"$2y$12$d.e18TWr661D9/spQRbE/u5HwK1yNUCDSyAlQwVGZLckBZAOofCmy",
"USER_EMAIL":"test@example.com",
"USER_ROLE":"1",
"USER_FIRSTNAME":"test",
"USER_LASTNAME":"test"
}
Success Response
Code : 200 OK
Content example
"User created"