api-tuner 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/bin/tuner.sh +1 -0
- package/package.json +1 -1
- package/rules/requests.n3 +7 -4
package/README.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
- [SWI Prolog](https://www.swi-prolog.org/Download.html)
|
|
8
8
|
|
|
9
|
+
Follow platform-specific instructions to install locally oor in a docker image.
|
|
10
|
+
|
|
11
|
+
To run `api-tuner` in GitHub workflow, you add this action to your jobs:
|
|
12
|
+
|
|
13
|
+
```yaml
|
|
14
|
+
- uses: fabasoad/setup-prolog-action@v1
|
|
15
|
+
```
|
|
16
|
+
|
|
9
17
|
## Installation
|
|
10
18
|
|
|
11
19
|
`npm i api-tuner`
|
package/bin/tuner.sh
CHANGED
package/package.json
CHANGED
package/rules/requests.n3
CHANGED
|
@@ -61,7 +61,13 @@ prefix earl: <http://www.w3.org/ns/earl#>
|
|
|
61
61
|
) string:concatenation ?command .
|
|
62
62
|
|
|
63
63
|
?command^tuner:trace .
|
|
64
|
-
|
|
64
|
+
{
|
|
65
|
+
?command!e:exec .
|
|
66
|
+
} log:callWithCleanup {
|
|
67
|
+
{
|
|
68
|
+
( { ?requestBodyFile log:rawType log:Literal } { ?requestBodyFile!file:rm } true ) log:ifThenElseIn [] .
|
|
69
|
+
} log:callWithCleanup true .
|
|
70
|
+
} .
|
|
65
71
|
|
|
66
72
|
(
|
|
67
73
|
"node " "lib/merge-curl-output.js"!file:libPath " "
|
|
@@ -72,9 +78,6 @@ prefix earl: <http://www.w3.org/ns/earl#>
|
|
|
72
78
|
("file://" ?responseFile)!string:concatenation^log:uri log:semantics ?res .
|
|
73
79
|
?res^tuner:trace .
|
|
74
80
|
} log:callWithCleanup {
|
|
75
|
-
{
|
|
76
|
-
( { ?requestBodyFile log:rawType log:Literal } { ?requestBodyFile!file:rm } true ) log:ifThenElseIn [] .
|
|
77
|
-
} log:callWithCleanup true .
|
|
78
81
|
{ ?responseHeadersFile!file:rm } log:callWithCleanup true .
|
|
79
82
|
{ ?responseBodyFile!file:rm } log:callWithCleanup true .
|
|
80
83
|
{ ?responseFile!file:rm } log:callWithCleanup true .
|