brane_api::data

Function list

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

Lists the datasets that are known in the instance.

§Arguments

  • context: The Context that contains stuff we need to run.

§Returns

A response that can be send to client. Specifically, it will contains a map (i.e., HashMap) of DataInfo structs that describe all the known datasets and where they live (mapped by their name).

§Errors

This function may error (i.e., reject the request) if we failed to load the infrastructure file.