-
Notifications
You must be signed in to change notification settings - Fork 16
/
lingo.wandougongzhu.cn.yaml
71 lines (71 loc) · 1.73 KB
/
lingo.wandougongzhu.cn.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
67
68
69
70
71
openapi: 3.0.2
info:
title: Lingo
description: Allows user to search among all Japan shopping platforms using ChatGPT. If you do not know the user's desired price range, or name of preferred brand or store, ask the user before making queries to the plugin.
version: 1.0.1
servers:
- url: https://lingo.wandougongzhu.cn
paths:
/api/plugin:
post:
summary: Query
description: Accepts a search query and returns a list of items.
operationId: query
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/QueryRequest"
required: true
responses:
"200":
description: Successful Response
content:
application/json:
schema:
$ref: "#/components/schemas/QueryResponse"
components:
schemas:
Goods:
title: Goods
required:
- id
- name
- price
- link
type: object
properties:
id:
title: Id
type: string
name:
title: Name
type: string
price:
title: Price
type: number
link:
title: Link
type: string
description: goods hyperlink to view detail of goods
QueryRequest:
title: Query
required:
- query
type: object
properties:
query:
title: Query
type: string
QueryResponse:
title: QueryResponse
required:
- results
type: object
properties:
results:
title: Results
description: The list of searched goods
type: array
items:
$ref: "#/components/schemas/Goods"