def create_store(): # Get store information from the request new_store = StoreModel.create_from_dict(g.data) new_store.save_to_db() return jsonify(new_store.to_dict()), 201