List all members of the organization

GET /members


Response:

[
  { 
    username: "",
    first_name: "",
    last_name: "",
    avatar: "",
    email: "",
    role: <1=Admin, 2=Manager, 3=Member>
  },
  ...
]


Add a new member on the organization

POST /members


Request:

{ 
  username: "",
  first_name: "",
  last_name: "",
  avatar: "",
  email: "",
  role: <1=Admin, 2=Manager, 3=Member>
}


Response:

{ 
  username: "",
  first_name: "",
  last_name: "",
  avatar: "",
  email: "",
  role: <1=Admin, 2=Manager, 3=Member>
}



Note that if username exists, a variation will be returned.



Update an existing member

PUT /members/<username>


Request:

{ 
  username: "",
  first_name: "",
  last_name: "",
  avatar: "",
  email: "",
  role: <1=Admin, 2=Manager, 3=Member>
}


Response:

{ 
  username: "",
  first_name: "",
  last_name: "",
  avatar: "",
  email: "",
  role: <1=Admin, 2=Manager, 3=Member>
}


Remove all members from an organization (delete account)

DELETE /members/<username>