Skip to content

Commit cbf2627

Browse files
committed
Add examples to README
1 parent 00b452c commit cbf2627

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,37 @@ The field name defaults to the name of the property referenced by the JSON Path
1414
The **Cache Time** determines the time in seconds to save the API response.
1515

1616
**Custom query parameters** lets you override the query parameters configured by the data source.
17+
18+
## Public data sets
19+
20+
Here are a few publicly available JSON data sets that you can experiment with.
21+
22+
### Reddit
23+
24+
Get information about any subreddit by adding `.json` at the end of the URL.
25+
26+
#### Configuration
27+
28+
- **URL:** [`https://www.reddit.com/r/grafana.json`](https://www.reddit.com/r/grafana.json)
29+
30+
#### Sample queries
31+
32+
- `$.data.children[*].data.title`
33+
- `$.data.children[*].data.created_utc`
34+
- `$.data.children[*].data.ups`
35+
36+
### TVmaze
37+
38+
List episodes from your favorite TV series.
39+
40+
#### Configuration
41+
42+
- **URL:** [`https://www.reddit.com/r/grafana.json`](https://www.reddit.com/r/grafana.json)
43+
- **Custom query parameters:** `q=rick-&-morty&embed=episodes`
44+
45+
#### Sample queries
46+
47+
- `$._embedded.episodes[*].name`
48+
- `$._embedded.episodes[*].airstamp`
49+
- `$._embedded.episodes[*].season`
50+
- `$._embedded.episodes[*].number`

0 commit comments

Comments
 (0)