@Path(value="/login") public class LoginResource extends Object
Constructor and Description |
---|
LoginResource() |
@GET @Produces(value="application/json") public Person 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 void 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 © 2016. All rights reserved.