Immutable data is written to and read from the network via self-encryption.
Unauthorised access is allowed.
GET /immutable-data/reader/{DataIdentifier-Handle-Id}
Authorization: Bearer <TOKEN>
200
{
handleId: u64, // representing the ImmutableDataReader
size: u64
}
Supports streaming and partial read using the range header. Unauthorised access is allowed.
GET /immutable-data/{Reader-Handle-Id}
Authorization: Bearer <TOKEN>
200 or 206
Binary data
GET /immutable-data/writer
Authorization: Bearer <TOKEN>
200
{
handleId: u64, // representing the ImmutableDataWriter
}
Supports streaming. Close writer must be invoked to ensure the data is saved completel
POST /immutable-data/{Writer-Handle-Id}
Authorization: Bearer <TOKEN>
Content-Length: <Length of data to be written>
Binary data
200
Invoking close on writer will generate the DataMap and save it to the network and return the DataIdentifier handle which can be used to read the data.
PUT /immutable-data/{Writer-Handle-Id}/{cipher-opts-handle}
Authorization: Bearer <TOKEN>
200
Unauthorised access is allowed.
DELETE /immutable-data/reader/{Reader-Handle-Id}
Authorization: Bearer <TOKEN>
200
DELETE /immutable-data/writer/{Writer-Handle-Id}
Authorization: Bearer <TOKEN>
200