知识图谱智能构建平台
  1. 问答对管理
知识图谱智能构建平台
  • 知识图谱智能构建平台
    • 账号管理
      • 用户登录
      • 用户注册
      • 发送验证码
      • 注销用户
    • 文献管理
      • 上传文献
      • 查询所有文献
      • 查询单个文献详情
      • 修改文献
      • 删除文献
    • 问答对管理
      • 查询问答对
        GET
      • 提问问题
        POST
      • 删除问答对
        POST
      • 修改问答对
        POST
    • 用户权限管理
      • 修改权限
      • 授予管理员权限
      • 删除用户
      • 获取用户列表
      • 获取用户权限
    • 图谱管理
      • 获取三元组数据
      • 获取最新日志
      • 获取全部日志
  1. 问答对管理

查询问答对

GET
http://localhost:8081/answer/getAnswerList

请求参数

Authorization
在 header 添加参数
Authorization
示例:
Authorization: ********************
Query 参数
page
string 
当前页数
必需
示例值:
1
pageSize
string 
每页展示数据条数
必需
示例值:
10
publicSearch
string 
必需
示例值:
0

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8081/answer/getAnswerList?page=1&pageSize=10&publicSearch=0' \
--header 'Authorization;'

返回响应

🟢200成功
application/json
Body
msg
string 
请求成功/失败
必需
data
object 
当前页面数据
必需
current_page_data
array [object {5}] 
必需
pagination
object 
必需
示例
{
    "msg": "请求成功",
    "data": {
        "current_page_data": [
            {
                "id": 384,
                "question": "When was the book published on July 11 , 1960 ?",
                "answer": "To Kill a Mockingbird",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 385,
                "question": "Who did Kris serve as a correspondent ?",
                "answer": "Kristin Adams",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 386,
                "question": "What was the name of the island in the French Senate ?",
                "answer": "St . Barthélemy",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 387,
                "question": "How many visitors does each year ?",
                "answer": "200 , 000",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 388,
                "question": "What is the name of the short coast on the Atlantic Ocean ?",
                "answer": "Cabinda",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 389,
                "question": "What has a specialized mission with a technology focus ?",
                "answer": "University of Technology , Mauritius",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 390,
                "question": "How many polytechnics in Singapore are 5 polytechnics ?",
                "answer": "There are 5 polytechnics in Singapore",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 391,
                "question": "The U . S . Green Building Council ' s ?",
                "answer": "LEED ( Leadership in Energy and Environmental Design ) rating system",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 392,
                "question": "How many large colleges are in the city ?",
                "answer": "two",
                "document_id": 39,
                "title": "luck"
            },
            {
                "id": 393,
                "question": "What was the name of the head coach in 1918 ?",
                "answer": "Knut ? Rockne",
                "document_id": 39,
                "title": "luck"
            }
        ],
        "pagination": {
            "total_pages": 5,
            "current_page": 1,
            "has_next": true,
            "has_previous": false
        }
    }
}
🟠404记录不存在
🟢203请求方式错误
修改于 2024-05-18 08:17:42
上一页
删除文献
下一页
提问问题
Built with