Skip to content

Commit

Permalink
deploy: 0875c2b
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Oct 10, 2024
1 parent 3484b17 commit 2df6897
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions artifact-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ print("Download statistics reset.")

The `Artifact Manager` provides an HTTP endpoint for retrieving artifact manifests, data, and download statistics. This is useful for public-facing web applications that need to access datasets, models, or applications.

### Endpoint: `/{workspace}/artifact/{path:path}`
### Endpoint: `/{workspace}/artifacts/{path:path}`

- **Workspace**: The workspace in which the artifact is stored.
- **Path**: The relative path to the artifact. For private artifacts, it requires proper authentication by passing the user's token in the request headers.
Expand All @@ -511,7 +511,7 @@ import requests

SERVER_URL = "https://hypha.aicell.io"
workspace = "my-workspace"
response = requests.get(f"{SERVER_URL}/{workspace}/artifact/collections/dataset-gallery/example-dataset")
response = requests.get(f"{SERVER_URL}/{workspace}/artifacts/collections/dataset-gallery/example-dataset")
if response.ok:
artifact = response.json()
print(artifact["name"]) # Output: Example Dataset
Expand Down

0 comments on commit 2df6897

Please sign in to comment.