-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageapi.py
57 lines (54 loc) · 1.74 KB
/
imageapi.py
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
from fastapi import FastAPI
app = FastAPI()
@app.get('/')
def index():
return {"namevalley":
{
"blue":
{
"1":
{
"image_id": 1,
"imagelink": "https://i.ibb.co/f4P136b/blueback.jpg"
},
"2":
{
"image_id": 2,
"imagelink": "https://i.ibb.co/tJDQNxX/6-blue-doll.png"
},
"3":
{
"image_id": 3,
"imagelink": "https://i.ibb.co/GPrXvyG/5-blue-lemon.png"
},
"4":
{
"image_id": 4,
"imagelink": "https://i.ibb.co/K24YvqL/4-blue-donot.png"
},
},
"pink":
{
"1":
{
"image_id": 1,
"imagelink": "https://i.ibb.co/QNCLTqk/7-pink-pineapple.png"
},
"2":
{
"image_id": 2,
"imagelink": "https://i.ibb.co/Q9Q8ynD/8-pink-doll.png"
},
"3":
{
"image_id": 3,
"imagelink": "https://i.ibb.co/Yf6yMMg/9-pink-pineapple.png"
},
"4":
{
"image_id": 4,
"imagelink": "https://i.ibb.co/YpSQ02Q/pinkback.jpg"
},
},
},
}