62 lines
2.1 KiB
Python
62 lines
2.1 KiB
Python
# urls.py 路由文件
|
|
from .apis.associationAnalysis import *
|
|
from .apis.clinical_Api import *
|
|
from .apis.complexNet import *
|
|
from .apis.redisApi import *
|
|
from .apis.cellApi import *
|
|
from .apis.esPrescriptionApi import *
|
|
from .apis.esRecordApi import *
|
|
from .apis.similarityAnalysis import *
|
|
from .exts import api
|
|
from .apis_beta import *
|
|
from .apis.userApi import *
|
|
from .apis.recordApi import *
|
|
from .apis.statisticAnalysis import *
|
|
from .apis.recordDataBaseApi import *
|
|
|
|
# 路由
|
|
api.add_resource(UserApi, '/user', endpoint='id')
|
|
api.add_resource(HelloWorld,'/')
|
|
|
|
#用户接口
|
|
api.add_resource(RegisterApi, '/register')
|
|
api.add_resource(LoginApi, '/login')
|
|
api.add_resource(ProtectedResource, '/protected')
|
|
|
|
#医案接口
|
|
api.add_resource(AddRecordApi,'/addRecord')
|
|
api.add_resource(AddMulRecordApi,'/addMulRecord')
|
|
|
|
# 医案数据库接口
|
|
api.add_resource(RecordDataBaseApi, '/record_data_base', '/record_data_base/<int:all_data_base_id>')
|
|
api.add_resource(GetRecordDataBaseApi,'/get_record_data_base/<int:user_id>')
|
|
|
|
# 医案查询,更新,删除接口
|
|
api.add_resource(GetRecordApi, '/getRecord/<int:some_data_base_id>')
|
|
api.add_resource(UpdateRecordApi, '/updateRecord/<int:record_id>')
|
|
api.add_resource(MulDeleteRecordApi,'/mulDeleteRecord')
|
|
|
|
#分析池接口
|
|
api.add_resource(CellApi, '/cell/<int:record_id>')
|
|
api.add_resource(GetCellApi, '/cell/<int:user_id>')
|
|
api.add_resource(MulAddCellApi, '/mulAddCell')
|
|
api.add_resource(PerAddCellApi, '/perAddCell')
|
|
api.add_resource(MulDeleteCellApi,'/mulDeleteCell')
|
|
|
|
#es方剂接口
|
|
api.add_resource(PrescriptionApi, '/searchPrescription/<string:query>')
|
|
#es医案接口
|
|
api.add_resource(EsRecordApi, '/esRecord/<string:query>')
|
|
# api.add_resource(EsRecordApi, '/esRecord') 医生
|
|
|
|
#redis接口
|
|
api.add_resource(RedisHotWordApi, '/hotWord')
|
|
api.add_resource(Clinical_Api, '/clinical') #主页 临床症状接口
|
|
|
|
#数据分析接口
|
|
api.add_resource(BetaApi,'/beta/<int:user_id>') #统计分析接口
|
|
api.add_resource(GetAB, '/getAB') #关联分析 获得前后项接口
|
|
api.add_resource(GetSimilarity,'/getSimilarity') #中药组成相似分析接口
|
|
api.add_resource(GetNetAB,'/getNetAB') #复杂网络分析
|
|
|