10.2.4.1 Register Hub User by DID
Interface Address | /hub/regiter | |||
Description | Register by DID and Public key, if successful, returns the user's ID in the Hub. | |||
Interface request parameter | ||||
No. | Parameter | Type | Required | Description |
---|---|---|---|---|
1 | RegisterHubReq | Y | Wrapper class | |
RegisterHubReq | ||||
1 | did | String | Y | DID |
2 | publicKey | String | Y | Public key |
Interface response parameter | ||||
No. | Parameter | Type | Description | |
1 | RegisterHubResult | Wrapper class | ||
RegisterHubResult | ||||
1 | success | Boolean | Whether it is successful | |
2 | uid | String | ID in the Hub | |
3 | message | String | Result description |