Skip to content

Commit fc3c223

Browse files
Update api
1 parent 8f492fc commit fc3c223

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

api/manager.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ tags:
3636
name: Vector Search Questions
3737
- description: Manage OAuth2 Authorized Clients
3838
name: OAuth2 Authorized Clients
39+
- description: Import Web Pages to the Graph
40+
name: Web Pages Imports
3941
- description: Get a list of all properties from google search console related to
4042
an account.
4143
name: Google Search Console Websites
@@ -1877,6 +1879,30 @@ paths:
18771879
summary: Create
18781880
tags:
18791881
- Vector Search Questions
1882+
/web-page-imports:
1883+
post:
1884+
description: Create a Web Page Import
1885+
operationId: createWebPageImports
1886+
requestBody:
1887+
content:
1888+
application/json:
1889+
schema:
1890+
$ref: '#/components/schemas/WebPageImportRequest'
1891+
required: true
1892+
responses:
1893+
"200":
1894+
content:
1895+
application/json:
1896+
schema:
1897+
$ref: '#/components/schemas/WebPageImportResponse'
1898+
description: Success
1899+
"401":
1900+
description: Authentication Failure
1901+
security:
1902+
- ApiKey: []
1903+
summary: Create
1904+
tags:
1905+
- Web Pages Imports
18801906
/web-pages:
18811907
get:
18821908
description: Get extracted web page content
@@ -3933,6 +3959,7 @@ components:
39333959
type: string
39343960
WebPage:
39353961
type: object
3962+
description: The Web Page data
39363963
properties:
39373964
abstract:
39383965
type: string
@@ -3956,6 +3983,45 @@ components:
39563983
uniqueItems: true
39573984
url:
39583985
type: string
3986+
WebPageImportRequest:
3987+
type: object
3988+
description: The Web Page Import request
3989+
properties:
3990+
embedding:
3991+
$ref: '#/components/schemas/EmbeddingRequest'
3992+
id_generator:
3993+
type: string
3994+
default: default
3995+
description: "The entity id generator, by default uses the web page path."
3996+
enum:
3997+
- default
3998+
- headline-with-url-hash
3999+
output_types:
4000+
type: array
4001+
default:
4002+
- http://schema.org/WebPage
4003+
description: "The type of the generated entities, by default `http://schema.org/WebPage`."
4004+
items:
4005+
type: string
4006+
default: "[\"http://schema.org/WebPage\"]"
4007+
description: "The type of the generated entities, by default `http://schema.org/WebPage`."
4008+
uniqueItems: true
4009+
url:
4010+
type: string
4011+
description: The Web Page url to import
4012+
required:
4013+
- url
4014+
WebPageImportResponse:
4015+
type: object
4016+
description: Web Page Import Response
4017+
properties:
4018+
model:
4019+
type: string
4020+
web_page:
4021+
$ref: '#/components/schemas/WebPage'
4022+
required:
4023+
- model
4024+
- web_page
39594025
Website:
39604026
type: object
39614027
description: A Website

0 commit comments

Comments
 (0)