5.1.18 API question

96 views
Skip to first unread message

vpl

unread,
Oct 3, 2018, 8:37:03 AM10/3/18
to TiddlyWiki
Hi,

I'm discovering in version 5.1.18 these new webserver API.
Fantastic ! exactly what I was looking for to integrate tiddlywiki as a kind of highly customizable and front-end ready system
In the list I see there is no way to get a list of tiddlers based on a filter. Am I wrong  ? Is it coming ?

Thanks a lot

Regards

Vpl

Jeremy Ruston

unread,
Oct 3, 2018, 1:46:17 PM10/3/18
to tiddl...@googlegroups.com
Hi VPL

I'm discovering in version 5.1.18 these new webserver API.
Fantastic ! exactly what I was looking for to integrate tiddlywiki as a kind of highly customizable and front-end ready system
In the list I see there is no way to get a list of tiddlers based on a filter. Am I wrong  ? Is it coming ?

Indeed, you might expect that one could pass a “filter” querystring parameter to APIs like GET /recipes/default/tiddlers.json and we may add such support in the future.

However, there’s an interesting alternative approach which uses the new rendered single tiddler endpoint:


The idea is to create a system tiddler that renders the data that you want, and then to request that tiddler as required over HTTP(S).

For example, create a tiddler called $:/MyTiddlers and the following content:

<<jsontiddlers “[tag[HelloThere]]">>

Then request that tiddler via HTTP:


Obviously, this technique requires you to pre-register all of the filters that you need in advance, but it gives you a lot of flexibility as to how the data is represented.

Best wishes

Jeremy



Thanks a lot

Regards

Vpl

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/27a7fef6-f3f7-4e1c-8755-588a9a00223e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vpl

unread,
Oct 4, 2018, 3:02:11 AM10/4/18
to TiddlyWiki
Hi Jeremy

Thanks a lot for your answer.
The second approach offer great flexibility at tiddlywiki side.
I'm going to test it.

Thanks very much

With Regards

Vpl
Reply all
Reply to author
Forward
0 new messages