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

Commit

Permalink
Update HTTP API docs for CIDs and Multiaddr types
Browse files Browse the repository at this point in the history
Uses docs generated via ipfs-inactive/http-api-docs#13, which are more accurate about response format and type.
  • Loading branch information
Mr0grog committed Jun 11, 2018
1 parent ebe507b commit 4babd13
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions content/reference/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ menu:
<!-- TODO: Remove index since it's handled by the TOC in the menu? -->
<!-- TODO: Structure this around command groups (dag, object, files, etc.) -->

<sup>Generated on 2018-05-23, from go-ipfs v0.4.15.</sup>
<sup>Generated on 2018-06-11, from go-ipfs v0.4.15.</sup>

<!-- Start modified intro -->
When an IPFS node is running as a daemon, it exposes an HTTP API that allows you to control the node and run the same commands you can from the command line.
Expand All @@ -26,6 +26,7 @@ This document is autogenerated from go-ipfs. For issues and support, check out
the [ipfs-http-api-docs](https://github.com/ipfs/ipfs-http-api-docs)
repository on GitHub.


## Getting started

### Alignment with CLI Commands
Expand Down Expand Up @@ -328,7 +329,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ProvideBufLen": "<int>"
"Wantlist": [
"<string>"
{ "/": "<cid-string>" }
]
"Peers": [
"<string>"
Expand Down Expand Up @@ -390,7 +391,7 @@ On success, the call to this endpoint will return with 200 and the following bod
```text
{
"Keys": [
"<string>"
{ "/": "<cid-string>" }
]
}
Expand Down Expand Up @@ -843,7 +844,7 @@ On success, the call to this endpoint will return with 200 and the following bod

```text
{
"Cid": "<string>"
"Cid": { "/": "<cid-string>" }
}
```
Expand All @@ -870,7 +871,7 @@ On success, the call to this endpoint will return with 200 and the following bod

```text
{
"Cid": "<string>"
"Cid": { "/": "<cid-string>" }
"RemPath": "<string>"
}
Expand Down Expand Up @@ -905,7 +906,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -944,7 +945,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -982,7 +983,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -1021,7 +1022,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -1060,7 +1061,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -1098,7 +1099,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ID": "<string>"
"Addrs": [
"<object>"
"<multiaddr-string>"
]
}
]
Expand Down Expand Up @@ -1604,7 +1605,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"Status": "<int32>"
"ErrorMsg": "<string>"
"Key": "<string>"
"Key": { "/": "<cid-string>" }
"FilePath": "<string>"
"Offset": "<uint64>"
"Size": "<uint64>"
Expand Down Expand Up @@ -1637,7 +1638,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"Status": "<int32>"
"ErrorMsg": "<string>"
"Key": "<string>"
"Key": { "/": "<cid-string>" }
"FilePath": "<string>"
"Offset": "<uint64>"
"Size": "<uint64>"
Expand Down Expand Up @@ -2188,8 +2189,8 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"Type": "<int>"
"Path": "<string>"
"Before": "<string>"
"After": "<string>"
"Before": { "/": "<cid-string>" }
"After": { "/": "<cid-string>" }
}
]
}
Expand Down Expand Up @@ -3093,7 +3094,7 @@ On success, the call to this endpoint will return with 200 and the following bod

```text
{
"Key": "<string>"
"Key": { "/": "<cid-string>" }
"Error": "<string>"
}
Expand Down Expand Up @@ -3263,7 +3264,7 @@ On success, the call to this endpoint will return with 200 and the following bod
{
"ProvideBufLen": "<int>"
"Wantlist": [
"<string>"
{ "/": "<cid-string>" }
]
"Peers": [
"<string>"
Expand Down

0 comments on commit 4babd13

Please sign in to comment.