-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttp-tester.http
85 lines (76 loc) · 1.84 KB
/
http-tester.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@base_url = http://localhost:3000
#http://localhost:3000
#http://34.123.112.126:3000
# format url /{usedatabase}/sensor/{sensorid}/{zonaid}
GET {{base_url}}/
###MONGODB
###
POST {{base_url}}/usemongo/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usemongo/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
###
###
POST {{base_url}}/usemongo/usereference/sensor/1/55186 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usemongo/usereference/sensor/1/55186?limit=10 HTTP/1.1
content-type: application/json
###COUCHDB
###
POST {{base_url}}/usecouch/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usecouch/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
###
###
POST {{base_url}}/usecouch/usereference/sensor/1/55186 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usecouch/usereference/sensor/1/55186?limit=1 HTTP/1.1
content-type: application/json
###ARANGODB
###
POST {{base_url}}/usearango/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usearango/useembed/sensor/1/55186 HTTP/1.1
content-type: application/json
###
POST {{base_url}}/usearango/usereference/sensor/2/55286 HTTP/1.1
content-type: application/json
{
"longitude" : "-12931123",
"latitude" : "-12931123",
"value" : 35
}
###
GET {{base_url}}/usearango/usereference/sensor/2/55286?limit=1 HTTP/1.1
content-type: application/json