This repository was archived by the owner on Apr 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -8231,43 +8231,44 @@ Stores input as a DAG object, outputs its key.
8231
8231
8232
8232
```
8233
8233
{
8234
- "Data ": "hello world"
8234
+ "data ": "hello world"
8235
8235
}
8236
8236
```
8237
8237
8238
8238
#### curl
8239
8239
8240
- curl -i -X POST -F "data=@test" "http://localhost:5001/api/v0/object/put& inputenc=json"
8240
+ curl -i -X POST -F "data=@test" "http://localhost:5001/api/v0/object/put? inputenc=json"
8241
8241
8242
8242
+ Body
8243
8243
8244
8244
```
8245
- curl -i -X POST -F "data=@test" "http://localhost:5001/api/v0/object/put& inputenc=json"
8245
+ curl -i -X POST -F "data=@test" "http://localhost:5001/api/v0/object/put? inputenc=json"
8246
8246
```
8247
8247
8248
- + Response 400
8248
+ + Response 200
8249
8249
8250
8250
+ Headers
8251
8251
8252
8252
```
8253
+ Access-Control-Allow-Headers : X-Stream-Output, X-Chunked-Output, X-Content-Length
8254
+ Access-Control-Expose-Headers : X-Stream-Output, X-Chunked-Output, X-Content-Length
8253
8255
Content-Type : application/json
8256
+ Server : go-ipfs/0.4.0-dev
8254
8257
Trailer : X-Stream-Error
8255
- Transfer-Encoding : chunked
8256
- Date : Thu, 04 Feb 2016 17:11:57 GMT
8257
- Connection : close
8258
+ Date : Sun, 20 Mar 2016 23:32:13 GMT
8258
8259
Transfer-Encoding : chunked
8259
8260
```
8260
8261
8261
- + Attributes (Error )
8262
- - Message: "This command can't be called directly. Try one of its subcommands."
8263
- - Code: 1
8262
+ + Attributes (object )
8263
+ - Hash (Multihash)
8264
+ - Links ( array , nullable )
8264
8265
8265
8266
+ Body
8266
8267
8267
8268
```
8268
8269
{
8269
- "Message ": "This command can't be called directly. Try one of its subcommands. ",
8270
- "Code ": 1
8270
+ "Hash ": "QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf ",
8271
+ "Links ": []
8271
8272
}
8272
8273
```
8273
8274
You can’t perform that action at this time.
0 commit comments