SirSeim/SPFY

Account Api

Closed this issue · 1 comments

  • /api/users GET
    • without query, get all users
    • with query, get users based on that
  • /api/users POST
    • must contain at least a username and password
    • optionally have First & Last name, permissions role
  • /api/users/{userId} GET
    • Get a specific user, based on their id
  • /api/users/self GET
    • Get a specific user, based on their token
  • /api/users/{userId} PUT
    • Update an existing user (excluding password), based on their id
    • Can update info and their permissions role
  • /api/users/self PUT
    • Update an existing user (excluding password), based on their token
    • Can update info and their permissions role
  • /api/users/{userId}/password PUT
    • Update an existing user's password, based on their id
    • Must contain current password (password), and new password (newPassword)
  • /api/users/self/password PUT
    • Update an existing user's password, based on their token
    • Must contain current password (password), and new password (newPassword)
  • /api/users/{userId} DELETE
    • Delete an existing user, based on their id
  • /api/users/self DELETE
    • Delete an existing user, based on their token

For now, the accounts portion of the API is complete.