列出某个项目的来源
开发环境
开发环境
GET
api/v1/projects/{projectId}/sources
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://dev-cn.your-api-server.comapi/v1/projects//sources' \
--header 'authorization;'
响应示例响应示例
200 - 成功示例
{
"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"
}
]
}
}
}
请求参数
Path 参数
projectId
string
必需
Header 参数
authorization
string
必需
返回响应
修改于 2024-02-22 05:55:10