]> git.somenet.org - pub/jan/dst18.git/blob - ass2-service/api/src/main/java/dst/ass2/service/api/auth/rest/IAuthenticationResource.java
Add template for assignment 2
[pub/jan/dst18.git] / ass2-service / api / src / main / java / dst / ass2 / service / api / auth / rest / IAuthenticationResource.java
1 package dst.ass2.service.api.auth.rest;
2
3 import javax.ws.rs.core.Response;
4
5 import dst.ass2.service.api.auth.AuthenticationException;
6 import dst.ass2.service.api.auth.NoSuchUserException;
7
8 /**
9  * The IAuthenticationResource exposes parts of the {@code IAuthenticationService} as a RESTful interface.
10  */
11 public interface IAuthenticationResource {
12
13     // TODO annotate the class and methods with the correct javax.ws.rs annotations
14
15     Response authenticate(String email, String password)
16             throws NoSuchUserException, AuthenticationException;
17
18 }