You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+30-6Lines changed: 30 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Tyson Tap 
1
+
# Tap Waiter
2
2
3
3
<!-- toc -->
4
4
@@ -12,20 +12,26 @@
12
12
13
13
## Synopsis
14
14
15
-
Tyson Tap offers an http api that serves json objects containing information about toml, yaml, json or markdown files that were indexed from specific folders.
15
+
Tap Waiter offers an http api that serves json objects containing information about toml, yaml, json or markdown files that were indexed from specific folders.
16
16
17
17
## Configuration
18
18
19
19
A configuration file is required and defines the listening port and the api endpoint definitions. A simple example can be found below and another in the `testdata` folder.
20
20
21
21
```go mdox-exec="tail -n +2 conf/conf.yaml"
22
22
port: 17777 # port to listen at
23
+
default_cache_lifetime: 5m # e.g.: 180s, 3m... 0for no caching
24
+
23
25
api: # list of api endpoints
24
26
# url where to endpoint is reachable
25
27
all.json:
26
28
27
-
# folder to be scanned for files
28
-
folder: ../testdata
29
+
# data source, can be folder, file or url
30
+
source: ../testdata
31
+
32
+
# method to read the data, to specify http request method
33
+
# not necessary for file reading
34
+
# method: get
29
35
30
36
# only detect files which fit the regex filter
31
37
regex_filter: ".+"
@@ -45,7 +51,7 @@ api: # list of api endpoints
45
51
46
52
# set of return values to add to the final json
47
53
# bool values are by defaultfalse and have to be enabled explicitely
48
-
return_values:
54
+
return:
49
55
# an array of the file path split at the path separator
50
56
split_path: false
51
57
@@ -84,7 +90,25 @@ order:
84
90
Here are a few URL parameter examples which are hopefully self explanatory. Please keep in mind that special characters have to be url encoded.
0 commit comments