-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.http
43 lines (32 loc) · 982 Bytes
/
test.http
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
### Add user
POST http://localhost:8000/user
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="image"; filename="image.png"
Content-Type: image/png
< ./test/kuriyan.png
--WebAppBoundary
Content-Disposition: form-data; name="user_id"
Content-Type: text/plain
kuriyan
--WebAppBoundary--
### Add user
POST http://localhost:8000/user
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="image"; filename="image.png"
Content-Type: image/png
< ./test/mehar.png
--WebAppBoundary
Content-Disposition: form-data; name="user_id"
Content-Type: text/plain
mehar
--WebAppBoundary--
### Get user_id from image
POST http://localhost:8000/image_to_user
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="image"; filename="image.png"
Content-Type: image/png
< ./test/kuriyan_vere.png
--WebAppBoundary