Skip to content

Replace calls to ids with calls to DatastoreAPI #1

@patrick-austin

Description

@patrick-austin

In the FDP model, there will be no ids component. All references to the ids server should be replaced with an appropriate call to the datastore api.

prepareData should send a request to the /restore endpoint (provisionally for echo/S3). The returned bucket name will be a UUID that can be used as the prepared id.

isPrepared should send a request to /bucket/{s3_storage_key}/{bucket_name}/complete.

The other endpoints matter less for an MVP, but isTwo level can be hardcoded to true for the short term and an endpoint added to the api which checks the type of the archive storage in config in the long term.

Likewise getSize can be hardcoded to -1 for an MVP but can develop this in the datastore API. Return this with the bucket name for the StatusCheck since we getSize immediately after prepareData, and it saves time. For the UserResource a dedicated endpoint which checks the size will be needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions