-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.http
More file actions
42 lines (27 loc) · 744 Bytes
/
test.http
File metadata and controls
42 lines (27 loc) · 744 Bytes
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
@port_no = 5000
@base_url = http://localhost:{{port_no}}
@database = test
####
# Checks if the server is alive.
#
GET {{base_url}}/is-alive
###
# Gets the content of a collection.
#
@collection = person
GET {{base_url}}/get-collection?db={{database}}&col={{collection}}
###
# Drops a particular collection.
@collection = person
GET {{base_url}}/drop-collection?db={{database}}&col={{collection}}
###
# Loads a named database fixture.
@fixture = example-json-fixture
# @fixture = example-js-fixture
GET {{base_url}}/load-fixture?db={{database}}&fix={{fixture}}
###
# Unloads a named database fixture.
#
@fixture = example-json-fixture
# @fixture = example-js-fixture
GET {{base_url}}/unload-fixture?db={{database}}&fix={{fixture}}