-
Notifications
You must be signed in to change notification settings - Fork 0
/
requests.http
36 lines (26 loc) · 879 Bytes
/
requests.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
### health check
GET {{protocol}}{{host}}:{{port}}/health_check/
### POST image
POST {{protocol}}{{host}}:{{port}}/capture/
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="image"; filename="board.jpg"
Content-Type: image/jpeg
< ./images/whole_board/20220305_144247.jpg
--WebAppBoundary--
### POST image with worker queue
POST {{protocol}}{{host}}:{{port}}/capture_async/
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="fcm_registration_token"
Content-Type: text/plain
foobar
--WebAppBoundary
Content-Disposition: form-data; name="to_play"
Content-Type: text/plain
W
--WebAppBoundary
Content-Disposition: form-data; name="image"; filename="board.jpg"
Content-Type: image/jpeg
< ./images/whole_board/20220305_144247.jpg
--WebAppBoundary--