[geeklog-devel] Webservices API in CVS (was: About the "internal" and Webservices APIs)
dirk at haun-online.de
Mon Aug 13 13:55:37 EDT 2007
Dirk Haun wrote:
>So apparently it's expecting an Atom service document (whatever that
>is ...), not the introspection I tried to feed it with. Oh well.
Okay, cleared up that confusion (thanks, Ramnath): The introspection
_is_ the service document. This was apparently renamed quite late in the
process so different folks use different names for the same thing now.
And the content type was also wrong.
So let's try that again (slightly censored):
dirk at pandora:~> mkdir geeklog
dirk at pandora:~> ./appfs.rb geeklog --svc-url http://www.example.com/
webservices/atom/?introspection --user Dirk --password *censored* &
dirk at pandora:~> ll geeklog/
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 Geeklog_CVS/
Sweet! That's the name of my Geeklog site here.
dirk at pandora:~> ll geeklog/Geeklog_CVS/
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 Entries/
dirk at pandora:~> ll geeklog/Geeklog_CVS/Entries/
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 drafts/
dr-xr-xr-x 1 dirk dirk 4096 Aug 13 19:46 published/
That's the appfs separating content into drafts and visible things.
Since the static pages don't have a draft flag, that directory is empty.
dirk at pandora:~> ll geeklog/Geeklog_CVS/Entries/published/
-rw-rw-rw- 1 dirk dirk 0 Aug 13 19:46 Anonymous_CVS_Access
-rw-rw-rw- 1 dirk dirk 0 Aug 13 19:46 Bounties!
... and those are my static pages!
Editing doesn't seem to work yet (haven't checked why), but deletion
works (just remove the file and the page is gone from Geeklog). And you
can view the content.
Now imagine to open those files in your favourite word processor. Or
just drop new files in that directory and have them appear on your website.
Can everybody see now why I'm so excited about this? This is not only
cool, this could actually become damn useful.
Geeklog Day at FrOSCon: August 25, 2007 - See you there!
More information about the geeklog-devel