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
-
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
shortName
here 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
ds
and I've appended data to it, so I know the latest version is1
, or that a patch log with id1
exists, 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
Accept
header set totext/plain
.I've tried both
http://localhost:1066/ds/init
andhttp://localhost:1066/ds/current
and I get the following result:I've tried
http://localhost:1066/blah/current
and I get:So I know that
/ds/...
is actually referring to the patch log since it returns a400
and 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/1
where1
is the patch id and it returns the patch log details, so I know it exists, but I can't hit the/ds/current
to get the latest patch log id.What am I doing wrong? Why a request to
http://localhost:1066/ds/current
is returning400
?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions