Skip to main content

RESTful service

Start the server​

Start a development version of the service on port 8002 with:

superduperdb rest

To change the port and ip-range allowed configure:

cluster:
rest:
uri: http://x1.x2.x3.x4:port
config: local/path/to/config.yaml # optional

Read more about configuration here and here.

In principle, once connected, it is possible to everything with this REST API as can be achieved from Python.

Important Endpoints​

RouteMethodDataParams
/db/applyPOSTJSON defining ComponentN/A
/db/executePOST{"query": <str>, "documents": <list_documents>}N/A
/db/removePOST{"type_id": <type_id>, "identifier": <identifier>}N/A
/db/showGETN/A?type_id=<type_id>
/db/artifact_store/putPUT<file>?datatype=<datatype>
/db/artifact_store/getGETN/A?file_id=<file_id>