You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31-22Lines changed: 31 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,27 +52,25 @@ npm run test:integration
52
52
53
53
The following environment variables are used by `dcsp-api` and can be configured. Entries marked as `required` are needed when running `dscp-api` in production mode.
| PORT | N |`3001`| The port for the API to listen on |
58
-
| EXTERNAL_ORIGIN | N || The origin from which the OpenAPI service is accessible. If not provided the value will default to `http://localhost:${PORT}`|
59
-
| EXTERNAL_PATH_PREFIX | N || A path prefix from which this service is served |
60
-
| API_HOST | Y | - | The hostname of the `dscp-node` the API should connect to |
61
-
| API_PORT | N |`9944`| The port of the `dscp-node` the API should connect to |
62
-
| LOG_LEVEL | N |`info`| Logging level. Valid values are [`trace`, `debug`, `info`, `warn`, `error`, `fatal`]|
63
-
| USER_URI | Y | - | The Substrate `URI` representing the private key to use when making `dscp-node` transactions |
64
-
| IPFS_HOST | Y | - | Hostname of the `IPFS` node to use for metadata storage |
65
-
| IPFS_PORT | N |`15001`| Port of the `IPFS` node to use for metadata storage |
66
-
| METADATA_KEY_LENGTH | N |`32`| Fixed length of metadata keys |
67
-
| METADATA_VALUE_LITERAL_LENGTH | N |`32`| Fixed length of metadata LITERAL values |
68
-
| API_VERSION | N |`package.json version`| API version |
69
-
| API_MAJOR_VERSION | N |`v3`| API major version |
70
-
| FILE_UPLOAD_MAX_SIZE | N |`200 * 1024 * 1024`| The Maximum file upload size (bytes) |
71
-
| SUBSTRATE_STATUS_POLL_PERIOD_MS | N |`10 * 1000`| Number of ms between calls to check dscp-node status |
72
-
| SUBSTRATE_STATUS_TIMEOUT_MS | N |`2 * 1000`| Number of ms to wait for response to dscp-node health requests |
73
-
| IPFS_STATUS_POLL_PERIOD_MS | N |`10 * 1000`| Number of ms between calls to check ipfs status |
74
-
| IPFS_STATUS_TIMEOUT_MS | N |`2 * 1000`| Number of ms to wait for response to ipfs health requests |
75
-
| AUTH_TYPE | N |`NONE`| Authentication type for routes on the service. Valid values: [`NONE`, `JWT`, `EXTERNAL`]|
| PORT | N |`3001`| The port for the API to listen on |
58
+
| API_HOST | Y | - | The hostname of the `dscp-node` the API should connect to |
59
+
| API_PORT | N |`9944`| The port of the `dscp-node` the API should connect to |
60
+
| LOG_LEVEL | N |`info`| Logging level. Valid values are [`trace`, `debug`, `info`, `warn`, `error`, `fatal`]|
61
+
| USER_URI | Y | - | The Substrate `URI` representing the private key to use when making `dscp-node` transactions |
62
+
| IPFS_HOST | Y | - | Hostname of the `IPFS` node to use for metadata storage |
63
+
| IPFS_PORT | N |`15001`| Port of the `IPFS` node to use for metadata storage |
64
+
| METADATA_KEY_LENGTH | N |`32`| Fixed length of metadata keys |
65
+
| METADATA_VALUE_LITERAL_LENGTH | N |`32`| Fixed length of metadata LITERAL values |
66
+
| API_VERSION | N |`package.json version`| API version |
67
+
| API_MAJOR_VERSION | N |`v3`| API major version |
68
+
| FILE_UPLOAD_MAX_SIZE | N |`200 * 1024 * 1024`| The Maximum file upload size (bytes) |
69
+
| SUBSTRATE_STATUS_POLL_PERIOD_MS | N |`10 * 1000`| Number of ms between calls to check dscp-node status |
70
+
| SUBSTRATE_STATUS_TIMEOUT_MS | N |`2 * 1000`| Number of ms to wait for response to dscp-node health requests |
71
+
| IPFS_STATUS_POLL_PERIOD_MS | N |`10 * 1000`| Number of ms between calls to check ipfs status |
72
+
| IPFS_STATUS_TIMEOUT_MS | N |`2 * 1000`| Number of ms to wait for response to ipfs health requests |
73
+
| AUTH_TYPE | N |`NONE`| Authentication type for routes on the service. Valid values: [`NONE`, `JWT`, `EXTERNAL`]|
76
74
77
75
The following environment variables are additionally used when `AUTH_TYPE : 'JWT'`
78
76
@@ -153,7 +151,18 @@ The `inputs` field is an array of token `id`s that identifies the tokens to be c
153
151
The `outputs` field is an array of objects that describe tokens to be created by running this process. To destroy tokens without creating any new ones simply pass an empty array. Each output must reference a `roles` object containing a (key, value) pair for each role associated with the new token. The value is the `AccountId` for the role. At minimum, a token requires the default `Owner` role to be set. The following role keys are accepted:
Each output must also reference a `metadata` object containing a (key, value) pair for each metadata item associated with the new token. The following metadata value types are accepted:
0 commit comments