示例#1
0
 def delete(self, role_id):
     return RequestResource.delete(role_id, RoleData)
示例#2
0
 def delete(self, schedule_id):
     return RequestResource.delete(schedule_id, ScheduleData)
示例#3
0
 def put(self, role_id):
     altered_data = RequestResource.put(role_id, RoleData,
                                        parser.parse_args())
     db.session.commit()
     return jsonify(altered_data.serialize())
示例#4
0
 def put(self, permission_id):
     altered_data = RequestResource.put(permission_id, PermissionData,
                                        parser.parse_args())
     db.session.commit()
     return jsonify(altered_data.serialize())
示例#5
0
 def delete(self, permission_id):
     return RequestResource.delete(permission_id, PermissionData)
示例#6
0
 def delete(self, supplier_id):
     return RequestResource.delete(supplier_id, SupplierData)
示例#7
0
 def put(self, supplier_id):
     altered_data = RequestResource.put(supplier_id, SupplierData,
                                        parser.parse_args())
     db.session.commit()
     return jsonify(altered_data.serialize())
示例#8
0
 def delete(self, journey_id):
     return RequestResource.delete(journey_id, JourneyData)
 def delete(self, journey_version_id):
     return RequestResource.delete(journey_version_id, JourneyVersionData)
 def put(self, journey_version_id):
     altered_data = RequestResource.put(journey_version_id, JourneyVersionData, parser.parse_args())
     db.session.commit()
     return jsonify(altered_data.serialize())