b4a0fd9af0
user can create a transfer for a share. will return transfer id and auth_key. another user can use transfer_id and auth_key to accept this share. salt of transfer and auth_key compute crypt_hash by sha1. then compare with crypt_hash in db. APIImpact DocImpact Partially-Implements: blueprint transfer-share-between-project Change-Id: I8facf9112a6b09e6b7aed9956c0a87fb5f1fc31f
47 lines
1.7 KiB
JSON
47 lines
1.7 KiB
JSON
{
|
|
"transfers": [
|
|
{
|
|
"id": "42b0fab4-df77-4f25-a958-5370e1c95ed2",
|
|
"created_at": "2022-09-07T01:52:39.000000",
|
|
"name": "transfer2",
|
|
"resource_type": "share",
|
|
"resource_id": "0fe7cf64-b879-4902-9d86-f80aeff12b06",
|
|
"source_project_id": "714198c7ac5e45a4b785de732ea4695d",
|
|
"destination_project_id": null,
|
|
"accepted": false,
|
|
"expires_at": "2022-09-07T01:57:39.000000",
|
|
"links": [
|
|
{
|
|
"rel": "self",
|
|
"href": "http://192.168.48.129/shar/v2/share-transfer/42b0fab4-df77-4f25-a958-5370e1c95ed2"
|
|
},
|
|
{
|
|
"rel": "bookmark",
|
|
"href": "http://192.168.48.129/shar/share-transfer/42b0fab4-df77-4f25-a958-5370e1c95ed2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "506a7e77-42e7-4f33-ac36-1d1dd7f2b9af",
|
|
"created_at": "2022-09-07T01:52:30.000000",
|
|
"name": "transfer1",
|
|
"resource_type": "share",
|
|
"resource_id": "29476819-28a9-4b1a-a21d-3b2d203025a0",
|
|
"source_project_id": "714198c7ac5e45a4b785de732ea4695d",
|
|
"destination_project_id": null,
|
|
"accepted": false,
|
|
"expires_at": "2022-09-07T01:57:30.000000",
|
|
"links": [
|
|
{
|
|
"rel": "self",
|
|
"href": "http://192.168.48.129/shar/v2/share-transfer/506a7e77-42e7-4f33-ac36-1d1dd7f2b9af"
|
|
},
|
|
{
|
|
"rel": "bookmark",
|
|
"href": "http://192.168.48.129/shar/share-transfer/506a7e77-42e7-4f33-ac36-1d1dd7f2b9af"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|