-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodule.json
More file actions
46 lines (46 loc) · 1.61 KB
/
module.json
File metadata and controls
46 lines (46 loc) · 1.61 KB
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
{
"doc": "https://github.com/thingsdb/module-go-requests#readme",
"version": "0.1.3",
"main": {
"linux/386": "bin/requests_linux_386.bin",
"linux/amd64": "bin/requests_linux_amd64.bin",
"linux/arm": "bin/requests_linux_arm.bin",
"linux/arm64": "bin/requests_linux_arm64.bin",
"freebsd/386": "bin/requests_freebsd_386.bin",
"freebsd/amd64": "bin/requests_freebsd_amd64.bin",
"freebsd/arm": "bin/requests_freebsd_arm.bin",
"freebsd/arm64": "bin/requests_freebsd_arm64.bin",
"darwin/amd64": "bin/requests_darwin_amd64.bin"
},
"exposes": {
"post": {
"doc": "Make a POST request",
"defaults": {
"method": "POST"
},
"argmap": ["url", "body", "*"]
},
"post_json": {
"doc": "Make a JSON POST request",
"defaults": {
"method": "POST",
"headers": [
["Accept", "application/json"],
["Content-type", "application/json"]
]
},
"argmap": ["url", "body", "*"]
},
"get": {
"doc": "Make a GET request",
"defaults": {
"method": "GET"
},
"argmap": ["url", "*"]
},
"req": {
"doc": "Make a HTTP request.\n\nExample:\n\trequests.req('http://example.org', {\n\t\tmethod: 'POST',\n\t\tparams: [['arg', '123']],\n\t\theaders: [['Content-Type', 'application/json']],\n\t\tbody: json_dump(data)\n\t});",
"argmap": ["url", "*"]
}
}
}