A simple IPFS server API simulator for a quick start to interact with an IPFS server.
mvn package
java -jar *.jar
Contact information:
Yepeng Ding
https://yepengding.github.io/
License: MIT License
listFiles
Code | Description | Schema |
---|---|---|
200 | OK | CommonResult«List«string»» |
403 | Forbidden | |
500 | Internal Error |
uploadFile
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
file | body | file | Yes | binary |
Code | Description | Schema |
---|---|---|
200 | OK | CommonResult«IPFSFile» |
getFileByCID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
cid | path | cid | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | Resource |
403 | Forbidden | |
500 | Internal Error |
Name | Type | Description | Required |
---|---|---|---|
code | long | No | |
data | IPFSFile | No | |
message | string | No |
Name | Type | Description | Required |
---|---|---|---|
code | long | No | |
data | [ string ] | No | |
message | string | No |
Name | Type | Description | Required |
---|---|---|---|
cid | string | No | |
integrity | string | No | |
size | long | No | |
timestamp | long | No |
Name | Type | Description | Required |
---|---|---|---|
InputStream | object |
Name | Type | Description | Required |
---|---|---|---|
description | string | No | |
file | file | No | |
filename | string | No | |
inputStream | InputStream | No | |
open | boolean | No | |
readable | boolean | No | |
uri | string (uri) | No | |
url | string (url) | No |