@Path(value="/login") public class LoginResource extends Object
| Constructor and Description |
|---|
LoginResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createAccount(String email,
String password)
Create a user account
|
void |
disable(String email)
Delete the account given the specific id.
|
javax.ws.rs.core.Response |
login(String email,
String auth)
Login a user by email and authorization string
|
@GET
@Produces(value="application/json")
public javax.ws.rs.core.Response login(@QueryParam(value="email")
String email,
@HeaderParam(value="Authorization")
String auth)
email - email of the user attempting to authenticateauth - authentication string/token@POST
@Produces(value="text/plain")
public javax.ws.rs.core.Response createAccount(@QueryParam(value="email")
String email,
@QueryParam(value="password")
String password)
throws Exception
email - email of the account to createpassword - password for the user accountException - If email/password not specified or if user does not existCopyright © 2017. All rights reserved.