mirror of
https://github.com/oceanprotocol/docs.git
synced 2024-11-26 19:49:26 +01:00
Update did-ddo.md
This commit is contained in:
parent
25d17e6067
commit
38e6bcad9a
@ -397,7 +397,8 @@ An element looks like:
|
|||||||
```
|
```
|
||||||
|
|
||||||
where:
|
where:
|
||||||
- name = defines the parameter name
|
|
||||||
|
- name = defines the parameter name (this is sent as HTTP param or key towards algo)
|
||||||
- type = defines the form type (text, number, select, boolean)
|
- type = defines the form type (text, number, select, boolean)
|
||||||
- label = defines the label which is displayed
|
- label = defines the label which is displayed
|
||||||
- required = if this field is mandatory to have a user input.
|
- required = if this field is mandatory to have a user input.
|
||||||
@ -435,7 +436,7 @@ Example:
|
|||||||
"description":"Are you a developer?"
|
"description":"Are you a developer?"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name":"interval",
|
"name":"preference",
|
||||||
"type": "select",
|
"type": "select",
|
||||||
"label": "Date",
|
"label": "Date",
|
||||||
"required": false,
|
"required": false,
|
||||||
@ -453,6 +454,18 @@ Example:
|
|||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Algorithms will have access to a json file located at /data/inputs/algoCustomData.json, which contains the keys/values for input data required. Example:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"surname": "John",
|
||||||
|
"age": 10,
|
||||||
|
"developer": false,
|
||||||
|
"preference': "nodejs"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
### Credentials
|
### Credentials
|
||||||
|
|
||||||
By default, a consumer can access a resource if they have 1 datatoken. _Credentials_ allow the publisher to optionally specify more fine-grained permissions.
|
By default, a consumer can access a resource if they have 1 datatoken. _Credentials_ allow the publisher to optionally specify more fine-grained permissions.
|
||||||
|
Loading…
Reference in New Issue
Block a user