-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathBlackLab.http
36 lines (26 loc) · 947 Bytes
/
BlackLab.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
### request with authorization
GET http://localhost:8080/blacklab-server/
Authorization: Basic user password
### create input format
POST http://localhost:8080/blacklab-server/input-formats
Authorization: Basic user password
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="data"; filename="voice-tei.blf.yaml"
< ./data/voice-tei.blf.yaml
--WebAppBoundary--
### create index
POST http://localhost:8080/blacklab-server/
Authorization: Basic user password
Content-Type: application/x-www-form-urlencoded
name = user:test &
format = user:voice-tei &
display = Test
### add doc
POST http://localhost:8080/blacklab-server/user%3Atest/docs
Authorization: Basic user password
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="data"; filename="data/input/PBsve435.xml"
< ./data/input/PBsve435.xml
--WebAppBoundary--