RDF Delta Server HTTP API to get the current patch version #270
Unanswered
edmondchuc
asked this question in
Q&A
Replies: 1 comment
-
|
I've created a python wrapper for the Delta Server's RPC APIs for anyone who's interested. https://github.com/Kurrawong/rdf-delta-python. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to work out the HTTP API for the RDF Delta server described in rdf-patch-logs.html.
It states,
I'm assuming
shortNamehere is the patch log name.I've got a local RDF Delta server running on localhost port 1066. I've created a patch log named
dsand I've appended data to it, so I know the latest version is1, or that a patch log with id1exists, but I'm trying to work out how a downstream service can work that out by hitting the HTTP API.The below examples have been sent with the
Acceptheader set totext/plain.I've tried both
http://localhost:1066/ds/initandhttp://localhost:1066/ds/currentand I get the following result:I've tried
http://localhost:1066/blah/currentand I get:So I know that
/ds/...is actually referring to the patch log since it returns a400and not a404, but I can't seem to work out how to get the current version as per the docs.Likewise, I can make a request to
http://localhost:1066/ds/1where1is the patch id and it returns the patch log details, so I know it exists, but I can't hit the/ds/currentto get the latest patch log id.What am I doing wrong? Why a request to
http://localhost:1066/ds/currentis returning400?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions