-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
66 lines (65 loc) · 1.6 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
openapi: 3.0.1
info:
title: Talk to Wiki Plugin
description: A plugin that allows the user to talk with Wiki-page using ChatGPT and llama-index.
version: 'v1'
servers:
- url: http://localhost:5001
paths:
/post-wiki-page:
post:
operationId: postWikiPage
summary: Post the Wiki-page from the public link.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/PostRequest"
required: true
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/PostResponse"
/talk-to-wiki/{wiki_page_id}/{question}:
get:
operationId: getTalkToWiki
summary: Talk to the data from the Wiki page.
parameters:
- in: path
name: wiki_page_id
schema:
type: string
required: true
description: The Wiki-page identifier.
- in: path
name: question
schema:
type: string
required: true
description: The question to the document.
responses:
"200":
description: OK
components:
schemas:
PostRequest:
type: object
required:
- wiki_page_url
properties:
wiki_page_url:
type: string
description: The public Url to the Wiki-page.
required: true
PostResponse:
title: PostResponse
required:
- wiki_page_id
type: object
properties:
wiki_page_id:
title: wiki_page_id
type: string