brane_reg::data

Function list

Source
pub async fn list(context: Arc<Context>) -> Result<impl Reply, Rejection>
Expand description

Handles a GET on the main /data path, returning a JSON with the datasets known to this registry.

§Arguments

  • context: The context that carries options and some shared structures between the warp paths.

§Returns

The response that can be send back to the client. Contains a JSON-encoded list (Vec) of AssetInfo structs.

§Errors

This function may error (i.e., reject) if we could not serialize the given store.