Skip to content

Commit

Permalink
fix(DagApi): get via a path
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed May 13, 2018
1 parent c3c03f4 commit 10e3e4d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/CoreApi/IDagApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,20 @@ Task<Cid> PutAsync(
/// contains the node's content as JSON.
/// </returns>
Task<JObject> GetAsync(Cid id, CancellationToken cancel = default(CancellationToken));

/// <summary>
/// Gets the content of an IPLD node.
/// </summary>
/// <param name="path">
/// A path, such as "cid", "/ipfs/cid/" or "cid/a".
/// </param>
/// <param name="cancel">
/// Is used to stop the task. When cancelled, the <see cref="TaskCanceledException"/> is raised.
/// </param>
/// <returns>
/// A task that represents the asynchronous get operation. The task's value
/// contains the path's value.
/// </returns>
Task<JToken> GetAsync(string path, CancellationToken cancel = default(CancellationToken));
}
}

0 comments on commit 10e3e4d

Please sign in to comment.