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

Edited object get protobuf encoding #92

Merged
merged 1 commit into from
Jun 1, 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
12 changes: 4 additions & 8 deletions apiary.apib
Original file line number Diff line number Diff line change
Expand Up @@ -7797,10 +7797,6 @@ Get and serialize the DAG node named by <key>.

+ Request With Argument And Protobuf Encoding

#### Bugs

Note that the `Content-Type` is still specified as `application/json`, although it is a protobuf response. This only applies for the current go-ipfs implementation.

#### curl

curl -i -X POST "http://localhost:5001/api/v0/object/get?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ&encoding=protobuf"
Expand All @@ -7818,18 +7814,18 @@ Get and serialize the DAG node named by <key>.
```
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.0-dev
Content-Type: application/protobuf
Server: go-ipfs/0.4.2
Trailer: X-Stream-Error
Date: Tue, 15 Mar 2016 17:31:05 GMT
Date: Mon, 30 May 2016 14:12:01 GMT
Transfer-Encoding: chunked
```

+ Body

```
1
" :^Ep\|.t|dUcat.jpg
" ? :?^?E???p??\?|?.??t|d??U??cat.jpg?
```

## links [GET /object/links{?arg}]
Expand Down