Skip to content
filipbitola edited this page Jan 18, 2015 · 7 revisions

The following URL structure exists for this controller:

api/Users/{action}/{userId : optional}

The following calls are currently available for the Users controller:

1. GET: /api/Users/All

  • Description: Gets a list of all users in the database.
  • Response Format: JSON of IEnumerable<UserModel>
  • Permission: CanSeeAllUsers

2. POST: /api/Users/Login

  • Description: Dummy route to trigger the Authentication handler.
  • Response Format: NoContent StatusCode
  • Permission: None

3. DELETE: /api/Users/Delete/{userId : int}

  • Description: Delete an existing user.
  • Response Format: HttpStatusCode
  • Permissions: CanDeleteUser

4. POST: /api/Users/Logout

  • Description: Log the current user out of the system.
  • Response Format: OK if successful, InternalServerError if not.
  • Permissions: None

Clone this wiki locally