remoteObject
Attribute | Type | Description | Required |
---|---|---|---|
name | string | Describing name | ✅ |
displayName | language value object | Descriptive name of the file used for human readability in applications. | |
description | language value object | File description | |
fileType | string | MIME Filetype of the remote object. E.g.: application/pdf | ✅ |
sha256 | string | sha256 hash of the rremote object | ✅ |
mirrors | Array of remoteSource | Can include source type url and ipfs . Array must not be empty. | ✅ |
additionalInformation | Object | Stores additional information, this is customizable by publisher |
remoteSource
type url
Attribute | Type | Description | Required |
---|---|---|---|
type | string | value url | ✅ |
url | string | Remote object URL | ✅ |
method | string | The HTTP method (e.g.: GET , POST ) | ✅ |
headers | string | additional http headers |
{
"type": "url",
"url": "https://your-files.com/file1.json",
"method": "GET",
"headers": {
"Custom-Header": "custom-value-if-needed"
}
}
type ipfs
Attribute | Type | Description | Required |
---|---|---|---|
type | string | value ipfs | ✅ |
ipfsCID | string | A content identifier, or CID, is a label used to point to material in IPFS. | ✅ |
Example:
{
"type": "ipfs",
"ipfsCID": "QmRA3NWM82ZGynMbYzAgYTSXCVM14Wx1RZ8fKP42G6gjgj"
}