Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
Remove group mount
Browse files Browse the repository at this point in the history
It does not currently work in the HTTP API, and the hyphens in the options break the Apiary parser.
  • Loading branch information
RichardLitt committed May 14, 2016
1 parent b11bd7b commit 84145fc
Showing 1 changed file with 0 additions and 84 deletions.
84 changes: 0 additions & 84 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -7155,90 +7155,6 @@ Displays the links an IPFS or IPNS object(s) contains, with the following format
}
```

# Group mount

Mount is currently unstable. This will be updated when it is accessible through the
HTTP API.

Mounts IPFS to the filesystem (read-only).

Mount ipfs at a read-only mountpoint on the OS (default: /ipfs and /ipns).
All ipfs objects will be accessible under that directory. Note that the
root will not be listable, as it is virtual. Access known paths directly.

+ Parameters
+ ipfs-path (string, optional) - The path where IPFS should be mounted
+ ipns-path (string, optional) - The path where IPNS should be mounted

+ Request

#### curl

curl -i http://localhost:5001/api/v0/mount

+ Body

```
curl -i http://localhost:5001/api/v0/mount
```

+ Response 500

+ Headers

```
Content-Type: application/json
Trailer: X-Stream-Error
Transfer-Encoding: chunked
Date: Thu, 04 Feb 2016 23:10:05 GMT
Transfer-Encoding: chunked
```

+ Attributes (Error)
- Message
- Code: 0

+ Body

```
{
"Message": "unable to check fuse version.\n\nDear User,\n\nBefore mounting, we must check your version of OSXFUSE. We are protecting\nyou from a nasty kernel panic we found in OSXFUSE versions \u003c2.7.2.[1]. To\nmake matters worse, it's harder than it should be to check whether you have\nthe right version installed...[2]. We've automated the process with the\nhelp of a little tool. We tried to install it, but something went wrong[3].\nPlease install it yourself by running:\n\n\tgo get github.com/jbenet/go-fuse-version/fuse-version\n\nYou can also stop ipfs from running these checks and use whatever OSXFUSE\nversion you have by running:\n\n\tipfs config DontCheckOSXFUSE true\n\n[1]: https://github.com/ipfs/go-ipfs/issues/177\n[2]: https://github.com/ipfs/go-ipfs/pull/533\n[3]: exit status 2\n# github.com/jbenet/go-fuse-version\n../go/src/github.com/jbenet/go-fuse-version/version_darwin.go:6:11: fatal error: 'fuse/fuse.h' file not found\n #include \u003cfuse/fuse.h\u003e\n ^\n1 error generated.\n\n",
"Code": 0
}
```

+ Request With Options

The response appears to be the same for any option provided.

#### curl

curl -i "http://localhost:5001/api/v0/mount&ipfs-mount=\"~\""

+ Body

```
curl -i "http://localhost:5001/api/v0/mount&ipfs-mount=\"~\""
```

+ Response 404

+ Headers

```
Date: Thu, 04 Feb 2016 23:12:47 GMT
Content-Length: 18
Content-Type: text/plain; charset=utf-8
```

+ Attributes (string)

+ Body

```
404 page not found
```

# Group name

IPFS namespace (IPNS) tool.
Expand Down

0 comments on commit 84145fc

Please sign in to comment.