Caltech Library logo

Collections (end point)

Interacting with the datasetd web service can be done with any web client. For documentation purposes I am assuming you are using curl. This command line program is available on most POSIX systems including Linux, macOS and Windows.

This provides a JSON list of collections available from the running datasetd service.

Example

The assumption is that we have datasetd running on port “8485” of “localhost” and a set of collections, “t1” and “t2”, defined in the “settings.json” used at launch.

Use curl to fetch the collections array.

    curl http://localhost:8485/collections

In my local setup I have two collections defined, “t1” and “t2” so the array returned looks like

    [
      "t1",
      "t2"
    ]