From fdfc857271f893e92f2e00e7f844c3c48b4d01c6 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 11 Feb 2016 16:48:29 -0500 Subject: [PATCH] Added Group `repo` --- apiary.apib | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/apiary.apib b/apiary.apib index 602087e..4df1dcb 100644 --- a/apiary.apib +++ b/apiary.apib @@ -1696,8 +1696,53 @@ root will not be listable, as it is virtual. Access known paths directly. ## local # Group repo +Manipulate the IPFS repo. -## gc +This command can't be called directly. + +## gc [GET /repo/gc] +Sweep the local set of stored objects and remove ones that are not pinned in +order to reclaim hard disk space. + ++ Request + + #### curl + + curl -i "http://localhost:5001/api/v0/gc" + + + Body + + ``` + curl -i "http://localhost:5001/api/v0/gc" + ``` + ++ Response 200 + + + Headers + + ``` + Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output + Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output + Content-Type: application/json + Server: go-ipfs/0.4.0-dev + Trailer: X-Stream-Error + Transfer-Encoding: chunked + X-Chunked-Output: 1 + Date: Thu, 11 Feb 2016 21:45:58 GMT + Transfer-Encoding: chunked + ``` + + + Attributes (ndjson) + - Key (Multihash) + + + + Body + + ``` + {"Key":"QmNLvkCDV6ZjUJsEwGNporYBuZdhWT6q7TBVYQwwRv12HT"} + {"Key":"QmNMkhF7m6CjJiNLsDbGrhfTbpjfTUu6qG3SVSMQ32isWb"} + ``` + # Group resolve