示例#1
0
 def put(id, vals):
     fr = FilmRepository()
     film = fr.update(id, vals)
     return jsonify({"film": film.json})
示例#2
0
 def put(title, author, date):
     """ Update a film based on the sent information """
     repository = FilmRepository()
     film = repository.update(title=title, author=author, date=date)
     return jsonify({"film": film.json})