-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbyby.ai.yaml
69 lines (67 loc) · 1.88 KB
/
byby.ai.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
openapi: 3.0.1
info:
title: Shop AI
description: A plugin for searching products based on a search term and quantity and returning the most relevant top.
version: 'v1'
servers:
- url: https://byby.ai
paths:
/api/search:
get:
operationId: searchProducts
summary: Search tops based on a search term and quantity.
parameters:
- in: query
name: searchTerm
schema:
type: string
required: true
description: The search term to look for in top's overview.
- in: query
name: quantity
schema:
type: integer
default: 5
required: false
description: The quantity of products to retrieve from the top.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/searchProductsResponse'
components:
schemas:
searchProductsResponse:
description: The response containing the top and its products.
type: object
properties:
topTitle:
type: string
description: The title of the top.
products:
type: array
items:
$ref: '#/components/schemas/Product'
Product:
type: object
properties:
title:
type: string
description: The title of the product.
description:
type: string
description: The description of the product.
link:
type: string
description: The URL link of the product.
salesPrice:
type: string
description: The sales price of the product.
imageUrl:
type: string
description: The URL link to the image of the product.
numberStars:
type: integer
description: The rating of the product.