@AnonymousAccessAllowed @GET("/") public Collection<Movie> getAllMovies() { return cinematheque.listMovie(); }
@AnonymousAccessAllowed @DELETE("/{id}") public void deleteMovie(@PathParam("id") int id) { cinematheque.deleteMovie(id); }
@AnonymousAccessAllowed @GET("/{id}") public Movie getMovie(@PathParam("id") int id) { return cinematheque.getMovie(id); }
@AnonymousAccessAllowed @PUT("/{title}") public int putMovie(@PathParam("title") String title) { return cinematheque.putMovie(title); }