def put(name, genre, year, affiche): """ Update an movie based on the sent information """ repository = MovieRepository() movie = repository.update(name=name, genre=genre, year=year, affiche=affiche) return jsonify({"movie": movie.json})
def put(movie_id, title, author, release_year): """ Update a movie based on the sent information """ repository = MovieRepository() movie = repository.update(movie_id=movie_id, title=title, author=author, release_year=release_year) return jsonify({"movie": movie.json})
def put(key, title, director, date, genre): """ Update a movie based on the sent information """ repository = MovieRepository() movie = repository.update(key=key, title=title, director=director, date=date, genre=genre) return jsonify({"movie": movie.json})
def put(title, director, original_language, type, date): """ Update a movie based on the sent information """ repository = MovieRepository() movie = repository.update(title=title, director=director, original_language=original_language, type=type, date=date) return jsonify({"movie": movie.json})
def put(title, author, length, genre, image, note): """ Update an movie based on the sent information """ repository = MovieRepository() movie = repository.update(title=title, author=author, length=length, genre=genre, image=image, note=note) return jsonify({"movie": movie.json})
def put(title, producer, date, actor): """ Update a movie based on the sent information """ repository = MovieRepository() movie = repository.update(title=title, producer=producer, date=date, actor=actor) return jsonify({"movie": movie.json})