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
We currently allow consumers to get deal_id and data_hash from deal and secretKey one by one.
However, there can be multiple data in a deal, and it is inconvenient for consumers to bring these one by one.
Therefore, we develop an API that can return multiple secretKeys.
Also, I want to change the uri of the API to get the secretKey.
Currently we have a uri configured as /v0/secretKey?deal_id={dealID}&data_hash={dataHash}.
However, since this secretKey belongs to the deal, I think it should be changed as follows.
Background
We currently allow consumers to get
deal_id
anddata_hash
from deal and secretKey one by one.However, there can be multiple data in a
deal
, and it is inconvenient for consumers to bring these one by one.Therefore, we develop an API that can return multiple secretKeys.
Also, I want to change the uri of the API to get the secretKey.
Currently we have a uri configured as
/v0/secretKey?deal_id={dealID}&data_hash={dataHash}
.However, since this secretKey belongs to the deal, I think it should be changed as follows.
/v0/datadeal/deals/{deal_id}/secret-keys
/v0/datadeal/deals/{deal_id}/secret-keys/{data_hash}
Implement
GetSecretKeys
Request
Response
GetSecretKey
Request
Response
The text was updated successfully, but these errors were encountered: