endpoint.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:threatdetectionservice 作者: flyballlabs 项目源码 文件源码
def post(self):
        ''' process threat-intel and conditionally alert user as threat notification '''
        try:
            parser = reqparse.RequestParser()
            parser.add_argument('score', type=int, location='json')
            parser.add_argument('threat_data', type=json_encode, location='json')
            args = parser.parse_args()
#             return jsonify(
#                     score = args['subject'],
#                     threat_data = json_decode(args['threat_data'])
#                 )
            return jsonify(
                    status = 200,
                    message = 'Email delivery success'
                )
        except Exception as e:
            return {'status' : str(e)}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号