Files
ai_wht_B/作者接口文档_20251229.csv
“shengyudong” 5a384b694e 2026-1-6
2026-01-06 14:18:39 +08:00

11 lines
1.4 KiB
CSV
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

endpoint,method,description,auth,params,response
/api/authors,GET,获取作者列表(分页,按科室分组),需要认证,"page, size, search, department, status, channel",返回按科室分组的作者列表
/api/authors/list,GET,获取作者列表(基于用户关联关系,按科室分组),需要认证,"page, size, search, department, status, channel",返回当前用户关联的作者列表
/api/authors/detail_list,GET,获取作者详细列表直接查询不返回app_token,需要认证,"page, size, search, department, status, channel",返回作者详细信息列表
/api/authors/<author_id>,GET,获取单个作者详情,需要认证,author_id (路径参数),返回完整的作者信息
/api/authors,POST,创建新作者,需要认证+角色(admin/editor),"author_name, app_id, app_token, department_name, title, hospital等",返回新创建的作者信息
/api/authors/<author_id>,PUT,更新作者信息,需要认证+角色(admin/editor),"author_id (路径), author_name, department_name等",返回更新后的作者信息
/api/authors/departments,GET,获取所有作者科室列表,需要认证,,返回科室名称数组
/api/authors/search,GET,搜索作者(用于下拉选择等),需要认证,"keyword, limit",返回匹配的作者列表
/api/authors/<author_id>,DELETE,删除作者,需要认证+角色(admin),author_id (路径参数),返回删除成功消息