diff --git a/docs/images/deposit-delete-chart.uml b/docs/images/deposit-delete-chart.uml index 7c3abdb6..cde4df7f 100644 --- a/docs/images/deposit-delete-chart.uml +++ b/docs/images/deposit-delete-chart.uml @@ -1,38 +1,38 @@ @startuml participant CLIENT as "SWORD client\n(eg. HAL)" participant DEPOSIT as "swh-deposit" participant DEPOSIT_STORAGE as "deposit storage" activate CLIENT activate DEPOSIT activate DEPOSIT_STORAGE CLIENT ->> DEPOSIT: POST /1//\nHEADER In-Progress: true DEPOSIT ->> DEPOSIT_STORAGE: check authentication DEPOSIT_STORAGE -->> DEPOSIT: return ok (if client exists and credentials ok) DEPOSIT -->> CLIENT: return 201, loop while status is 'partial' CLIENT -> DEPOSIT: DELETE /1///media/\nDELETE /1///metadata/ DEPOSIT ->> DEPOSIT_STORAGE: check authentication DEPOSIT_STORAGE -->> DEPOSIT: return ok DEPOSIT ->> DEPOSIT_STORAGE: check inputs() - alt status is not 'partial' - DEPOSIT_STORAGE -->> DEPOSIT: return ko - DEPOSIT -->> CLIENT: return 400 - else status is 'partial' + alt status is 'partial' DEPOSIT_STORAGE -->> DEPOSIT: return ok DEPOSIT ->> DEPOSIT_STORAGE: delete-deposit-or-deposit-archives() DEPOSIT_STORAGE -->> DEPOSIT: return ok DEPOSIT -->> CLIENT: return 204 + else status is not 'partial' + DEPOSIT_STORAGE -->> DEPOSIT: return ko + DEPOSIT -->> CLIENT: return 400 end end @enduml