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

Update refs following go-ipfs#2812 #98

Merged
merged 1 commit into from
Jun 13, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 37 additions & 20 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -9990,7 +9990,8 @@ Lists links (references) from an object.
+ Headers

```
Date: Tue, 19 Apr 2016 14:12:30 GMT
Vary: Origin
Date: Mon, 13 Jun 2016 10:56:22 GMT
Content-Length: 32
Content-Type: text/plain; charset=utf-8
```
Expand Down Expand Up @@ -10027,9 +10028,10 @@ Lists links (references) from an object.
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Date: Tue, 19 Apr 2016 14:12:20 GMT
Vary: Origin
Date: Mon, 13 Jun 2016 10:56:45 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10066,10 +10068,11 @@ Lists links (references) from an object.
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
X-Chunked-Output: 1
Date: Tue, 19 Apr 2016 14:12:09 GMT
Date: Mon, 13 Jun 2016 10:57:06 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10100,10 +10103,11 @@ Lists links (references) from an object.
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
X-Chunked-Output: 1
Date: Tue, 19 Apr 2016 14:11:59 GMT
Date: Mon, 13 Jun 2016 10:57:18 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10140,10 +10144,11 @@ Lists links (references) from an object.
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
X-Chunked-Output: 1
Date: Tue, 19 Apr 2016 14:11:46 GMT
Date: Mon, 13 Jun 2016 10:57:34 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10180,10 +10185,11 @@ Lists links (references) from an object.
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: application/json
Server: go-ipfs/0.4.1-dev
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
X-Chunked-Output: 1
Date: Tue, 19 Apr 2016 14:11:36 GMT
Date: Mon, 13 Jun 2016 10:57:53 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10231,8 +10237,9 @@ Lists links (references) from an object.
Content-Type: application/json
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Vary: Origin
X-Chunked-Output: 1
Date: Wed, 01 Jun 2016 14:23:42 GMT
Date: Mon, 13 Jun 2016 10:58:05 GMT
Transfer-Encoding: chunked
```

Expand Down Expand Up @@ -10269,28 +10276,38 @@ Displays the hashes of all local objects.

+ Response 200

The response has been truncated, to show only a sample of identically-formatted ndjson objects.

+ Headers

```
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output, X-Content-Length
Content-Type: text/plain
Server: go-ipfs/0.4.1-dev
Content-Type: application/json
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
X-Stream-Output: 1
Date: Tue, 19 Apr 2016 14:11:14 GMT
Vary: Origin
X-Chunked-Output: 1
Date: Mon, 13 Jun 2016 10:58:20 GMT
Transfer-Encoding: chunked
```

+ Attributes (string)
+ Attributes (ndjson)

Newline delimited multihashes
- Ref (Multihash)
- Err (string)

+ Body

```
QmNLjhs2cWVGopVTE5KqCZBdX7TE6i9AU1y8pwytt7cyzC
QmNLwdgyRiTuMf9M3Fjtu2TpMjz2CgZS4YgeuqjLHv3rjq
{
"Ref": "QmNLxtKFa66yoRQHWa4FXkwCMqVpWGhg2XBXAfwKvSmJFp",
"Err": ""
}
{
"Ref": "QmNXFHU3KzhzXN9pZ5Bdghk3LYGj58Xzi7WvMVVoykdLxA",
"Err": ""
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it is NDJSON the objects should span a one line. In the response of the API it is also one line per object.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I automatically format it to make it more readable, as all of the JSON is basically scrunched up in the terminal.

I could add a note about this to make this clear?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, as this format is in theory incompatible with NDJSON.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #100. Can this PR be merged?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup.

```

# Group repo
Expand Down