Hi Paul

> Hi Jeremy, where can I find the docs on the HTTP API?

Embarrassingly, there’s no decent documentation. The API is a subset of the 
TiddlyWeb API, which is documented here:

https://tank.peermore.com/tanks/tiddlyweb/HTTP%20API 
<https://tank.peermore.com/tanks/tiddlyweb/HTTP%20API>

Sadly, the best way to see the routes that are actually implemented is to look 
at the source:

https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/server.js#L158-L279
 
<https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/server.js#L158-L279>

Or, you can use browser developer tools to observe network traffic as you 
interactively create and delete tiddlers.

Best wishes

Jeremy.


> 
> On Tue, Nov 28, 2017 at 9:52 PM, Paul Hemans <[email protected] 
> <mailto:[email protected]>> wrote:
> Thanks I'll check it out.
> 
> On Tue, Nov 28, 2017 at 9:12 PM, Jeremy Ruston <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi Paul
> 
>> Very much a noob, but this is a smashing project.
> 
> Thanks!
> 
>> I am running tiddlywiki with the server option. I would like to create 
>> tiddlers through an external process and then display them in the browser. 
>> That has been successful. 
>> 
>> Now I need the page to refresh in the browser to pick up the new tiddlers. 
>> Is there a way to do this where TW could monitor the directory for changes? 
>> Otherwise I could force it to restart on every change but that seems a 
>> little draconian and could cause problems for anyone interacting with the UI.
> 
> It sounds like you are creating your tiddlers by writing directly to the file 
> system. As you've discovered, TiddlyWiki won't pick up the changes.
> 
> A better approach is to use the HTTP API to write your tiddlers (eg with curl 
> or wget). Then they will be automatically saved to the filing system and 
> propagated to all connected browsers.
> 
> By default, the browsers only fetch updates from the server every 60 seconds. 
> Users can fetch updates immediately in the "Server” tab of control panel.
> 
> Best wishes
> 
> Jeremy
> 
> 
>> 
>> Thanks.
>> 
>> -- 
>> 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/67c19980-1c87-42cf-a72c-66aa1ec38563%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/67c19980-1c87-42cf-a72c-66aa1ec38563%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 a topic in the Google 
> Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe 
> <https://groups.google.com/d/topic/tiddlywiki/_LQ4g5NFn1Y/unsubscribe>.
> To unsubscribe from this group and all its topics, 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/D24A4D52-AAAF-4BC2-A9E1-864B2CA01081%40gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/D24A4D52-AAAF-4BC2-A9E1-864B2CA01081%40gmail.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] 
> <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/CAKT3oPcaQJTot2Fra2fkdntfZJpF5mpieDmZVx1AD2eJTL8BPw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/CAKT3oPcaQJTot2Fra2fkdntfZJpF5mpieDmZVx1AD2eJTL8BPw%40mail.gmail.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/EB727C99-A58C-412D-85D4-E873BEA849FB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to