Improve files object description

This commit is contained in:
Alex Coseru 2023-01-17 14:51:31 +02:00 committed by GitHub
parent 9883d8b989
commit 3113cae092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 12 deletions

View File

@ -226,9 +226,9 @@ where "files" contains one or more storage objects.
Static URLs. Static URLs.
Parameters: Parameters:
* `url` - File url * `url` - File url, required
* `method` - The HTTP method * `method` - The HTTP method, required
* `headers` - Additional HTTP headers * `headers` - Additional HTTP headers, optional
``` ```
{ {
@ -236,10 +236,10 @@ Parameters:
"url": "https://url.com/file1.csv", "url": "https://url.com/file1.csv",
"method": "GET", "method": "GET",
"headers": "headers":
[ {
{"Authorization": "Bearer 123"}, "Authorization": "Bearer 123",
{"APIKEY": "124"}, "APIKEY": "124",
] }
} }
``` ```
@ -262,8 +262,9 @@ Parameters:
[GraphQL](https://graphql.org/) is a query language for APIs and a runtime for fulfilling those queries with your existing data. [GraphQL](https://graphql.org/) is a query language for APIs and a runtime for fulfilling those queries with your existing data.
Parameters: Parameters:
* `url` - Server endpoint url * `url` - Server endpoint url, required
* `query` - The query to be executed * `query` - The query to be executed, required
* `headers` - Additional HTTP headers, optional
``` ```
{ {
@ -285,9 +286,9 @@ Use a smart contract as data source.
Parameters: Parameters:
* `chainId` - The chainId used to query the contract * `chainId` - The chainId used to query the contract, required
* `address` - The smartcontract address * `address` - The smartcontract address, required
* `abi` - The function abi (NOT the entire contract abi) * `abi` - The function abi (NOT the entire contract abi), required
``` ```
{ {