SKS_MovieService/MovieServiceCommon/src/main/java/at/technikumwien/sks/movie/ResourceInterface.java
2019-01-08 18:16:48 +01:00

16 lines
364 B
Java

package at.technikumwien.sks.movie;
import javax.ws.rs.core.Response;
import java.util.List;
public interface ResourceInterface<T> {
Response create(T object) throws Exception;
T retrieve(Long id) throws Exception;
void update(Long id, T object) throws Exception;
void delete(Long id) throws Exception;
List<T> list() throws Exception;
}