列出某个项目的来源
GET
api/v1/projects/{projectId}/sources检索与给定项目关联的所有源的列表。此端点提供链接到特定项目的源的集合。来源作为项目的参考或上下文。
请求参数
Path 参数
projectId
string
必需
项目的唯一标识符。
示例代码
返回响应
成功(200)
没有权限(401)
服务器错误(500)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
status
string
必需
data
object
必需
sitemaps
array [object {6}]
必需
uploads
object
必需
示例
成功示例
{
"status": "success",
"data": {
"sitemaps": [
{
"id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"type": "sitemap",
"settings": {
"executive_js": true,
"data_refresh_frequency": "never",
"create_new_pages": true,
"remove_unexist_pages": false,
"refresh_existing_pages": "never",
"sitemap_path": "https://example.com/sitemap.xml"
},
"pages": [
{
"id": 1,
"page_url": "https://example.com",
"page_url_hash": "d41d8cd98f00b204e9800998ecf8427e",
"project_id": 1,
"s3_path": "project-1/page-1/file.pdf",
"crawl_status": "queued",
"index_status": "queued",
"is_file": true,
"is_file_kept": true,
"filename": "file.pdf",
"filesize": 100,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00"
}
]
}
],
"uploads": {
"id": 1,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"type": "sitemap",
"settings": {
"executive_js": true,
"data_refresh_frequency": "never",
"create_new_pages": true,
"remove_unexist_pages": false,
"refresh_existing_pages": "never",
"sitemap_path": "https://example.com/sitemap.xml"
},
"pages": [
{
"id": 1,
"page_url": "https://example.com",
"page_url_hash": "d41d8cd98f00b204e9800998ecf8427e",
"project_id": 1,
"s3_path": "project-1/page-1/file.pdf",
"crawl_status": "queued",
"index_status": "queued",
"is_file": true,
"is_file_kept": true,
"filename": "file.pdf",
"filesize": 100,
"created_at": "2021-01-01 00:00:00",
"updated_at": "2021-01-01 00:00:00",
"deleted_at": "2021-01-01 00:00:00"
}
]
}
}
}
最后修改时间: 10 个月前