Skip to content

Commit

Permalink
Merge branch 'test/crawl-options'
Browse files Browse the repository at this point in the history
  • Loading branch information
nickscamara committed May 16, 2024
2 parents a314590 + bcce054 commit d407ec7
Showing 1 changed file with 38 additions and 3 deletions.
41 changes: 38 additions & 3 deletions apps/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"query": {
"type": "string",
"format": "uri",
"description": "The URL to scrape"
"description": "The query to search for"
},
"pageOptions": {
"type": "object",
Expand Down Expand Up @@ -354,14 +354,14 @@
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ScrapeResponse"
"$ref": "#/components/schemas/CrawlStatusResponseObj"
},
"description": "Data returned from the job (null when it is in progress)"
},
"partial_data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ScrapeResponse"
"$ref": "#/components/schemas/CrawlStatusResponseObj"
},
"description": "Partial documents returned as it is being crawls (streaming). When a page is ready it will append to the parial_data array - so no need to wait for all the website to be crawled."
}
Expand Down Expand Up @@ -484,6 +484,41 @@
}
}
},
"CrawlStatusResponseObj": {
"type": "object",
"properties": {
"markdown": {
"type": "string"
},
"content": {
"type": "string"
},
"html": {
"type": "string",
"nullable": true,
"description": "Raw HTML content of the page if `includeHtml` is true"
},
"metadata": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"language": {
"type": "string",
"nullable": true
},
"sourceURL": {
"type": "string",
"format": "uri"
}
}
}
}
},
"SearchResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit d407ec7

Please sign in to comment.