Exemple #1
0
 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})
Exemple #2
0
 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})
Exemple #3
0
 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})
Exemple #4
0
 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})
Exemple #5
0
 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})
Exemple #6
0
 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})