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:

https://tiddlywiki.com/prerelease/#Using%20the%20read-only%20single%20tiddler%20view

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:

curl http://127.0.0.1:8080/%24%3A%2FMyTiddlers

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 [email protected] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <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
>  
> <https://groups.google.com/d/msgid/tiddlywiki/27a7fef6-f3f7-4e1c-8755-588a9a00223e%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/242A91BA-48AC-437D-AE7A-FCD901974EEE%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to