docs: update cancel crawl response

- add cancel crawl event to requests.http
This commit is contained in:
Ademílson Tonato 2025-01-24 16:16:04 +00:00
parent 720a429115
commit 34e3911a97
No known key found for this signature in database
GPG Key ID: 169C7BE271C9FA3A
2 changed files with 13 additions and 14 deletions

View File

@ -28,6 +28,11 @@ content-type: application/json
GET {{baseUrl}}/v1/crawl/{{crawlId}} HTTP/1.1
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
# @name batchScrape

View File

@ -840,19 +840,16 @@
],
"responses": {
"200": {
"description": "Successful cancellation",
"description": "Crawl job successfully cancelled",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": true
},
"message": {
"status": {
"type": "string",
"example": "Crawl job successfully cancelled."
"enum": ["cancelled"],
"example": "cancelled"
}
}
}
@ -988,19 +985,16 @@
],
"responses": {
"200": {
"description": "Successful cancellation",
"description": "Crawl job successfully cancelled",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean",
"example": true
},
"message": {
"status": {
"type": "string",
"example": "Crawl job successfully cancelled."
"enum": ["cancelled"],
"example": "cancelled"
}
}
}