mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-04-23 06:29:44 +08:00
docs: update cancel crawl response
- add cancel crawl event to requests.http
This commit is contained in:
parent
720a429115
commit
34e3911a97
@ -28,6 +28,11 @@ content-type: application/json
|
|||||||
GET {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
|
GET {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
|
||||||
Authorization: Bearer {{$dotenv TEST_API_KEY}}
|
Authorization: Bearer {{$dotenv TEST_API_KEY}}
|
||||||
|
|
||||||
|
### Cancel Crawl
|
||||||
|
@crawlId = {{crawl.response.body.$.id}}
|
||||||
|
# @name cancelCrawl
|
||||||
|
DELETE {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
|
||||||
|
Authorization: Bearer {{$dotenv TEST_API_KEY}}
|
||||||
|
|
||||||
### Batch Scrape Websites
|
### Batch Scrape Websites
|
||||||
# @name batchScrape
|
# @name batchScrape
|
||||||
|
@ -840,19 +840,16 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Successful cancellation",
|
"description": "Crawl job successfully cancelled",
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"success": {
|
"status": {
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "Crawl job successfully cancelled."
|
"enum": ["cancelled"],
|
||||||
|
"example": "cancelled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -988,19 +985,16 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Successful cancellation",
|
"description": "Crawl job successfully cancelled",
|
||||||
"content": {
|
"content": {
|
||||||
"application/json": {
|
"application/json": {
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"success": {
|
"status": {
|
||||||
"type": "boolean",
|
|
||||||
"example": true
|
|
||||||
},
|
|
||||||
"message": {
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "Crawl job successfully cancelled."
|
"enum": ["cancelled"],
|
||||||
|
"example": "cancelled"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user