1 package dst.ass2.service.api.auth.rest;
3 import javax.ws.rs.core.Response;
5 import dst.ass2.service.api.auth.AuthenticationException;
6 import dst.ass2.service.api.auth.NoSuchUserException;
9 * The IAuthenticationResource exposes parts of the {@code IAuthenticationService} as a RESTful interface.
11 public interface IAuthenticationResource {
13 // TODO annotate the class and methods with the correct javax.ws.rs annotations
15 Response authenticate(String email, String password)
16 throws NoSuchUserException, AuthenticationException;