API Endpoints#

These are all the endpoints that an install of Xpublish with minimal configuration will serve.

plugin_info#

GET /plugins#

Get Plugins

Return the source and version of the currently loaded plugins.

Status Codes:
  • 200 OK – Successful Response

module_version#

GET /versions#

Get Versions

Returns a dict with currently loaded versions of key libraries.

Status Codes:
  • 200 OK – Successful Response

info#

GET /datasets#

Get Dataset Collection Keys

Return all the currently known Dataset IDs.

Status Codes:
  • 200 OK – Successful Response

zarr#

GET /datasets/{dataset_id}/zarr/.zmetadata#

Get Zarr Metadata

Consolidated Zarr metadata.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/zarr/.zgroup#

Get Zarr Group

Zarr group data.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/zarr/.zattrs#

Get Zarr Attrs

Zarr attributes.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/zarr/{var}/{chunk}#

Get Variable Chunk

Get a zarr array chunk.

This will return cached responses when available.

Parameters:
  • var (string) – Variable in dataset

  • chunk (string) – Zarr chunk

  • dataset_id (string) – Unique ID of dataset

Status Codes:

dataset_info#

GET /datasets/{dataset_id}/#

Html Representation

Returns the xarray HTML representation of the dataset.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/keys#

List Keys

List of the keys in a dataset.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/dict#

To Dict

The full dataset as a dictionary.

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes:
GET /datasets/{dataset_id}/info#

Info

Dataset schema (close to the NCO-JSON schema).

Parameters:
  • dataset_id (string) – Unique ID of dataset

Status Codes: