Changeset View
Changeset View
Standalone View
Standalone View
docs/images/deposit-create-chart.uml
@startuml | @startuml | ||||
participant CLIENT as "SWORD client\n(eg. HAL)" | participant CLIENT as "SWORD client\n(eg. HAL)" | ||||
participant DEPOSIT as "swh-deposit" | participant DEPOSIT as "swh-deposit" | ||||
participant DEPOSIT_DATABASE as "deposit database" | participant DEPOSIT_DATABASE as "deposit database" | ||||
participant SCHEDULER as "swh-scheduler" | |||||
activate CLIENT | activate CLIENT | ||||
activate DEPOSIT | activate DEPOSIT | ||||
activate DEPOSIT_DATABASE | activate DEPOSIT_DATABASE | ||||
activate SCHEDULER | |||||
CLIENT ->> DEPOSIT: GET /1/<service-document>/ | CLIENT ->> DEPOSIT: GET /1/<service-document>/ | ||||
DEPOSIT ->> DEPOSIT_DATABASE: check authentication | DEPOSIT ->> DEPOSIT_DATABASE: check authentication | ||||
DEPOSIT_DATABASE -->> DEPOSIT: return ok (if client exists and credentials ok) | DEPOSIT_DATABASE -->> DEPOSIT: return ok (if client exists and credentials ok) | ||||
DEPOSIT -->> CLIENT: return 200, <service-document> | DEPOSIT -->> CLIENT: return 200, <service-document> | ||||
CLIENT ->> DEPOSIT: POST /1/<collection-name>/ | CLIENT ->> DEPOSIT: POST /1/<collection-name>/ | ||||
DEPOSIT ->> DEPOSIT_DATABASE: check authentication | DEPOSIT ->> DEPOSIT_DATABASE: check authentication | ||||
DEPOSIT_DATABASE -->> DEPOSIT: return ok (if client exists and credentials ok) | DEPOSIT_DATABASE -->> DEPOSIT: return ok (if client exists and credentials ok) | ||||
DEPOSIT ->> DEPOSIT_DATABASE: create new deposit | DEPOSIT ->> DEPOSIT_DATABASE: create new deposit | ||||
DEPOSIT_DATABASE -->> DEPOSIT: return deposit_id | DEPOSIT_DATABASE -->> DEPOSIT: return deposit_id | ||||
DEPOSIT ->> SCHEDULER: schedule load for <deposit_id> | |||||
DEPOSIT -->> CLIENT: return 201, <deposit receipt> | DEPOSIT -->> CLIENT: return 201, <deposit receipt> | ||||
@enduml | @enduml |