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