diff --git a/docs/images/.gitignore b/docs/images/.gitignore --- a/docs/images/.gitignore +++ b/docs/images/.gitignore @@ -1 +1,2 @@ *.png +*.svg diff --git a/docs/images/deposit-update-chart.png b/docs/images/deposit-update-chart.png deleted file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@> CLIENT: return 201, - loop while status is 'partial' - CLIENT -> DEPOSIT: POST/PUT /1///media/\nPOST/PUT /1///metadata/ + CLIENT -> DEPOSIT: POST/PUT /1///media/\nPOST/PUT /1///metadata/ - DEPOSIT ->> DEPOSIT_STORAGE: check authentication - DEPOSIT_STORAGE -->> DEPOSIT: return ok + DEPOSIT ->> DEPOSIT_STORAGE: check authentication + DEPOSIT_STORAGE -->> DEPOSIT: return ok - DEPOSIT ->> DEPOSIT_STORAGE: check inputs() - DEPOSIT_STORAGE -->> DEPOSIT: return ok + DEPOSIT ->> DEPOSIT_STORAGE: check inputs() + alt status is 'partial' + DEPOSIT_STORAGE -->> DEPOSIT: return ok alt HEADER: In-Progress = true DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('partial') else HEADER: In-Progress = false - DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('ready') + DEPOSIT ->> DEPOSIT_STORAGE: add-or-replace-data-and-update-status('deposited') end DEPOSIT_STORAGE -->> DEPOSIT: return ok - + DEPOSIT -->> CLIENT: return 204 + else status is not partial + DEPOSIT_STORAGE -->> DEPOSIT: return ko + DEPOSIT -->> CLIENT: return 400, "You can only act on deposit with status partial" end - DEPOSIT -->> CLIENT: return 201, \nreturn 204 @enduml