Added GraphQL & On-Chain as objects supported
This commit is contained in:
parent
05dd28906e
commit
2dcc7eb9b8
|
@ -219,39 +219,74 @@ During the publish process, file URLs must be encrypted with a respective _Provi
|
||||||
|
|
||||||
where "files" contains one or more storage objects.
|
where "files" contains one or more storage objects.
|
||||||
|
|
||||||
Type of objects supported :
|
**Type of objects supported:**
|
||||||
|
|
||||||
| Type | Description | Example |
|
***`URL`***
|
||||||
| ----- | ---------------------------------------- | ----------------------------------------------------------------- |
|
|
||||||
| `url` | Static URL. Contains url and HTTP method | <pre class="language-json"><code class="lang-json">[</code></pre> |
|
Static URL. Contains url and HTTP method.
|
||||||
| { | | |
|
|
||||||
|
|
||||||
```
|
```
|
||||||
"type": "url",
|
{
|
||||||
"url": "https://url.com/file1.csv",
|
"type": "url",
|
||||||
"method": "GET",
|
"url": "https://url.com/file1.csv",
|
||||||
"headers":
|
"method": "GET",
|
||||||
[
|
"headers":
|
||||||
{"Authorization": "Bearer 123"},
|
[
|
||||||
{"APIKEY": "124"},
|
{"Authorization": "Bearer 123"},
|
||||||
]
|
{"APIKEY": "124"},
|
||||||
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
} ] |
|
|
||||||
|
|
||||||
First class integrations supported in the future :
|
***`IPFS`***
|
||||||
|
|
||||||
| Type | Description | Example |
|
IPFS files.
|
||||||
| ------ | ----------- | ----------------------------------------------------------------- |
|
|
||||||
| `ipfs` | IPFS files | <pre class="language-json"><code class="lang-json">[</code></pre> |
|
|
||||||
| { | | |
|
|
||||||
|
|
||||||
```
|
```
|
||||||
"type": "ipfs",
|
{
|
||||||
"hash": "XXX"
|
"type": "ipfs",
|
||||||
|
"hash": "XXX"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
} ] | | `filecoin` | Filecoin storage | | | `arwave` | Arwave | | | `storj` | Storj | | | `sql` | Sql connection, dataset is generated by a query | |
|
***`GraphQL`***
|
||||||
|
|
||||||
|
Use GraphQL querys as datasource.
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"type": "graphql",
|
||||||
|
"url": "http://172.15.0.15:8000/subgraphs/name/oceanprotocol/ocean-subgraph",
|
||||||
|
"query": """
|
||||||
|
query{
|
||||||
|
nfts(orderBy: createdTimestamp,orderDirection:desc){
|
||||||
|
id
|
||||||
|
symbol
|
||||||
|
createdTimestamp
|
||||||
|
}
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
***`On-Chain`***
|
||||||
|
|
||||||
|
Use a smart contract as datasource.
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"type": "smartcontract",
|
||||||
|
"address": "0x8149276f275EEFAc110D74AFE8AFECEaeC7d1593",
|
||||||
|
"abi": {
|
||||||
|
"inputs": [],
|
||||||
|
"name": "swapOceanFee",
|
||||||
|
"outputs": [{"internalType": "uint256", "name": "", "type": "uint256"}],
|
||||||
|
"stateMutability": "view",
|
||||||
|
"type": "function",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
A service can contain multiple files, using multiple storage types.
|
A service can contain multiple files, using multiple storage types.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue