Interface Address |
/hub/getResource |
Description |
Access the Hub and read the specified resource. Users have direct access, third parties need to obtain authorization from the user to access. |
Interface request parameter |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
QueryResourceReq |
Y |
Wrapper class |
QueryResourceReq |
1 |
uid |
String |
Y |
ID in the Hub |
2 |
url |
String |
Y |
The path of the stored resource |
3 |
sign |
String |
Y |
Signature |
Interface response parameter |
No. |
Parameter |
Type |
Description |
1 |
resourceInfo |
ResourceInfo |
Content of cryptographic resource |
ResourceInfo |
1 |
content |
String |
Content of cryptographic credentials |
2 |
key |
String |
For the ciphertext key, you need to use your own private key to decrypt it first, and then decrypt the content. |