Chat applikasjon
Public Member Functions | List of all members
resources.UserResource Class Reference

Public Member Functions

List< UsergetUsers ()
 
User newUser (User user) throws NoSuchAlgorithmException, InvalidKeySpecException
 
boolean editUser (@PathParam("userId") int userId, User user) throws NoSuchAlgorithmException, InvalidKeySpecException
 

Detailed Description

User resource exposed at "/user" path

Member Function Documentation

◆ getUsers()

List< User > resources.UserResource.getUsers ( )
inline

Method handling HTTP GET requests

Returns
List of users as JSON response

◆ newUser()

User resources.UserResource.newUser ( User  user) throws NoSuchAlgorithmException, InvalidKeySpecException
inline

Method handling HTTP POST requests

Parameters
useruserInformation as String
Returns
the new User if not registered, or the User that matches the username as JSON object

The documentation for this class was generated from the following file: