-
Notifications
You must be signed in to change notification settings - Fork 1
/
collection.http
67 lines (41 loc) · 1.74 KB
/
collection.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
################################################################ auth-svc
@auth_svc_base_url = http://localhost:{{APP_PORT}}
# @env-json-key AUTH_TOKEN access_token
POST {{auth_svc_base_url}}/auth/login
Authorization: Basic {{MYSQL_TEST_USERNAME}} {{MYSQL_TEST_PASSWORD}}
Content-Type: application/json
###
POST {{auth_svc_base_url}}/auth/validate
Authorization: Bearer {{AUTH_TOKEN}}
Content-Type: application/json
################################################################ gateway-svc
@gateway_svc_base_url = http://localhost:8080
# @env-json-key AUTH_TOKEN_GW access_token
POST {{gateway_svc_base_url}}/login
Authorization: Basic {{MYSQL_TEST_USERNAME}} {{MYSQL_TEST_PASSWORD}}
Content-Type: application/json
###
POST {{gateway_svc_base_url}}/upload HTTP/1.1
Authorization: Bearer {{AUTH_TOKEN_GW}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary{{$timestamp}}
------WebKitFormBoundary{{$timestamp}}
Content-Disposition: form-data; name="test_file"; filename="test-neovim.mp4"
Content-Type: video/mp4
< {{TEST_FILE}}
------WebKitFormBoundary{{$timestamp}}--
###
POST http://localhost:8080/upload
Authorization: Bearer {{AUTH_TOKEN_GW}}
file=!file(/Users/jgarcia/Documents/programacion/test-neovim.mp4)
################################################################ mp3-svc
@mp3_svc_base_url = http://localhost:8000/api
###
POST http://localhost:8000/api/convert
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary01
------WebKitFormBoundary01
Content-Disposition: form-data; name="file"; filename="test-neovim.mp4"
< /Users/jgarcia/Documents/programacion/test-neovim.mp4
------WebKitFormBoundary01--
###
POST http://localhost:8000/api/convert
file=!file(/Users/jgarcia/Documents/programacion/test-neovim.mp4)