From 9b9cf9c450da319a73fcbc07a781a3ed87822634 Mon Sep 17 00:00:00 2001 From: Afri <58883403+q9f@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:35:55 +0100 Subject: [PATCH] docs: update api for two client test (#675) Signed-off-by: Afri <58883403+q9f@users.noreply.github.com> --- docs/TWOCLIENTTEST.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/TWOCLIENTTEST.md b/docs/TWOCLIENTTEST.md index 7ea65c60..ea7423a8 100644 --- a/docs/TWOCLIENTTEST.md +++ b/docs/TWOCLIENTTEST.md @@ -110,7 +110,7 @@ We're now ready to upload a file to the network. In this example we'll use node Replace `` with the path to the file you want to upload in the following command: ```bash - curl -H "content-type: application/octet-stream" -H "Expect: 100-continue" -T "" 127.0.0.1:8080/api/codex/v1/content -X POST + curl -H "content-type: application/octet-stream" -H "Expect: 100-continue" -T "" 127.0.0.1:8080/api/codex/v1/data -X POST ``` (Hint: if curl is reluctant to show you the response, add `-o ` to write the result to a file.) @@ -122,7 +122,7 @@ Depending on the file size this may take a moment. Codex is processing the file Replace `` with the identifier returned in the previous step. Replace `` with the filename where you want to store the downloaded file. ```bash - curl 127.0.0.1:8081/api/codex/v1/content/zdj7Wfm18wewSWL9SPqddhJuu5ii1TJD39rtt3JbVYdKcqM1K --output + curl 127.0.0.1:8081/api/codex/v1/data//network --output ``` Notice we are connecting to the second node in order to download the file. The CID we provide contains the information needed to locate the file within the network.