pub async fn get(
name: String,
context: Arc<Context>,
) -> Result<impl Reply, Rejection>Expand description
Handles a GET on a specific datasets in a child-path of the /data-path, returning a JSON with more information about this dataset.
§Arguments
name: The name of the dataset to retrieve the metadata for.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 AssetInfo struct with the metadata.
§Errors
This function may error (i.e., reject) if we didn’t know the given name or we failred to serialize the relevant AssetInfo.