By @pedroruizhidalg
This is a very effective and complete application to manage users of a given application. You can even manage more than one application, each with respective users. A user, identified by email, can appear in several applications, but as different users.
Routes | Method | Request | Successfull result |
---|---|---|---|
/apps/create | POST |
{ name } |
{apikey: apiKey, expiration_time, active:true, affectedRows : newApp.affectedRows} |
/application/:appkey | GET |
void | if app is active: {apikey,name,create_time,end_time,active} |
/application/getuuid/:apikey | GET |
void | {uuid} |
/apps/application/delete | DELETE |
{appkey,uuid} |
{"affectedRows: 1,message: "All users of this application was deleted too"} |
/signup | POST |
{applicationkey,username,email,password,enddate} |
{uuid,token} |
/signin | POST |
{appkey,uuid} |
{uuid,token} |
/signwithemailpassword | POST |
{appkey,email,password} |
{uuid,token} |
/checktoken | POST |
{token} |
{checktoken: true} |
Headers management is very simple: Each one must contain:
Content-Type: application/json