-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathapi.getamplio.com.yaml
191 lines (191 loc) · 4.4 KB
/
api.getamplio.com.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
components:
schemas:
Company:
properties:
name:
title: Name
type: string
required:
- name
title: Company
type: object
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
title: Detail
type: array
title: HTTPValidationError
type: object
LocateQuery:
properties:
manufacturer_part_number:
items:
type: string
title: Manufacturer Part Number
type: array
openai_conversation_id:
title: Openai Conversation Id
type: string
openai_ephemeral_user_id:
title: Openai Ephemeral User Id
type: string
user_query:
title: User Query
type: string
required:
- manufacturer_part_number
- user_query
- openai_conversation_id
- openai_ephemeral_user_id
title: LocateQuery
type: object
MetaData:
properties:
estimated_factory_lead_days:
title: Estimated Factory Lead Days
type: integer
manufacturer_name:
title: Manufacturer Name
type: string
manufacturer_url:
title: Manufacturer Url
type: string
mpn:
title: Mpn
type: string
short_description:
title: Short Description
type: string
required:
- mpn
- short_description
- manufacturer_name
title: MetaData
type: object
Offer:
properties:
inventoryLevel:
title: Inventorylevel
type: integer
prices:
items:
$ref: '#/components/schemas/Prices'
title: Prices
type: array
required:
- inventoryLevel
title: Offer
type: object
Prices:
properties:
convertedPrice:
title: Convertedprice
type: number
price:
title: Price
type: number
quantity:
title: Quantity
type: integer
required:
- convertedPrice
- price
- quantity
title: Prices
type: object
Response:
properties:
metadata:
items:
$ref: '#/components/schemas/MetaData'
title: Metadata
type: array
prompt:
title: Prompt
type: string
sellers:
items:
$ref: '#/components/schemas/Sellers'
title: Sellers
type: array
required:
- prompt
- sellers
- metadata
title: Response
type: object
Sellers:
properties:
company:
$ref: '#/components/schemas/Company'
isAuthorized:
title: Isauthorized
type: boolean
offers:
items:
$ref: '#/components/schemas/Offer'
title: Offers
type: array
required:
- company
- isAuthorized
- offers
title: Sellers
type: object
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
title: Location
type: array
msg:
title: Message
type: string
type:
title: Error Type
type: string
required:
- loc
- msg
- type
title: ValidationError
type: object
info:
description: Get Inventory Data
title: Inventory API
version: 1.0.1
openapi: 3.0.2
paths:
/chat-plugin/locate/locate:
post:
description: Use this endpoint when a user is asking about inventory levels
about an electronic component.
operationId: locate_inventory_chat_plugin_locate_locate_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LocateQuery'
required: true
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
description: Successful Response
'422':
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Validation Error
summary: Locate Inventory
tags:
- plugin
- locate