16 lines
364 B
Java
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;
|
|
}
|