MyPub web backend to provide user-centric services.
This is intended to be held by a trustworthy decentralized organization.
GlobalProperties.java
workspace
workspace locationencryptor
encryptor name
Compile and distribute MyPub Encryptor into workspace.
Require encryptor in workspace
mvn package
java -jar *.jar
Contact information:
Yepeng Ding
https://yepengding.github.io/
License: MIT License
encrypt
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
file | body | file | Yes | binary |
Code | Description | Schema |
---|---|---|
200 | OK | CommonResult«Encrypted» |
getFileByCID
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
name | path | name | Yes | string |
Code | Description | Schema |
---|---|---|
200 | OK | Resource |
403 | Forbidden | |
500 | Internal Error |
Name | Type | Description | Required |
---|---|---|---|
code | long | No | |
data | Encrypted | No | |
message | string | No |
Name | Type | Description | Required |
---|---|---|---|
decryptor | string | No | |
file | string | No | |
key | string | 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 |