-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.http
53 lines (42 loc) · 1.05 KB
/
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
44
45
46
47
48
49
50
51
52
53
### alexis
@api = http://localhost:3000
@email = [email protected]
@password = 1password
@contentType = application/json
# @name register
POST {{api}}/v1/users
Content-Type: {{contentType}}
{
"firstName": "Firster",
"lastName": "Laster",
"email": "{{email}}",
"password": "{{password}}"
}
###
# @name login
POST {{api}}/v1/login
Content-Type: {{contentType}}
{
"email": "{{email}}",
"password": "{{password}}"
}
###
# @name search
POST {{api}}/v1/ask
Content-Type: {{contentType}}
{
"question": "what happens If a backlog item is scheduled for release?"
}
###
# ###
# # @name upload
# POST {{api}}/knowledge-source/pdf
# Content-Type: multipart/form-data; boundary=----WebKitFormBoundarySdkmFdJUp00onZAB
# ----WebKitFormBoundarySdkmFdJUp00onZAB
# Content-Disposition: form-data; name="file-to-upload"
# title
# ----WebKitFormBoundarySdkmFdJUp00onZAB
# Content-Disposition: form-data; name="file-to-upload"; filename="EffectiveAggregateDesign.pdf"
# Content-Type: image/png
# < ./EffectiveAggregateDesign.pdf
# ----WebKitFormBoundarySdkmFdJUp00onZAB--