From 91b995df195088a6d01c8d276ab134a825df93f1 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Mon, 30 May 2016 15:15:24 +0100 Subject: [PATCH] Edited object get protobuf encoding Following https://github.com/ipfs/go-ipfs/pull/2516 --- apiary.apib | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apiary.apib b/apiary.apib index b6a1c31..9855740 100644 --- a/apiary.apib +++ b/apiary.apib @@ -7797,10 +7797,6 @@ Get and serialize the DAG node named by . + 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" @@ -7818,10 +7814,10 @@ Get and serialize the DAG node named by . ``` 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 ``` @@ -7829,7 +7825,7 @@ Get and serialize the DAG node named by . ``` 1 - " :^Ep\|.t|dUcat.jpg + " ? :?^?E???p??\?|?.??t|d??U??cat.jpg? ``` ## links [GET /object/links{?arg}]