On Thu, Mar 30, 2017 at 2:06 AM, Paul Hammant <p...@hammant.org> wrote:

> I see that Fossil doesn't follow PUT/POST verbs*, but that doesn't really
> matter if the JavaScript app can craft URLs to match APIs.
>

FWIW, CGI (Fossil's typical run-mode) does not specify PUT operations:

https://tools.ietf.org/html/rfc3875#section-4.3

tl;dr: it only specifies GET, POST, and HEAD.

Fossil does support POST, but only in limited contexts (e.g. the JSON API
reads JSON via POST).

Does anyone know of an example app somewhere that shows it all work?  Like
> a "Hello World" of any JavaScript app that does at least C R and U of CRUD
> with Fossil as the backing store?
>

i used to have a fossil backend powering a custom wiki using the fossil
JSON API, using client-side javascript to render the wiki content (as
opposed to using fossil's own wiki format). Unfortunately, it was broken by
the shutdown of google code (from which it fetched some JS and CSS bits).
It only used the wiki API, in any case.

JSON API:
https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2qNUkBEgiUvoqFN4/view

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to