-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi3.json
93 lines (93 loc) · 3.14 KB
/
openapi3.json
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
{
"openapi": "3.0.0",
"info": {
"title": "Clothing Search API",
"version": "1.0.0",
"description": "An API for searching clothing items based on image URLs"
},
"paths": {
"/search": {
"get": {
"summary": "Search clothing items by image URL",
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string",
"format": "uri"
},
"description": "The image URL to search clothing for"
}
],
"responses": {
"200": {
"description": "Successful search results",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/ClothingItem"
}
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"ClothingItem": {
"type": "object",
"properties": {
"brand": {
"type": "string",
"description": "The brand of the clothing item"
},
"name": {
"type": "string",
"description": "The name or model of the clothing item"
},
"color": {
"type": "string",
"description": "The color of the clothing item"
},
"type": {
"type": "string",
"description": "The type of clothing (e.g., Pants, Dress, Skirt)",
"enum": [
"Pants",
"Dress",
"Skirt"
]
},
"gender": {
"type": "string",
"description": "The gender category of the clothing item",
"enum": [
"Men's",
"Women's",
"Unisex"
]
},
"product_number": {
"type": "string",
"description": "Unique product identifier"
}
},
"required": [
"brand",
"name",
"color",
"type",
"gender",
"product_number"
]
}
}
}
}