mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-01-23 17:53:04 +02:00
Merge pull request #32 from kaznovac/patch-2
[Abstraction Levels Isolation]: typo rides->runs
This commit is contained in:
commit
08e565afce
@ -360,7 +360,7 @@ Let's now look at how the order cancel operation flows through our abstraction l
|
||||
* checks the authorization;
|
||||
* solves money issues, i.e. whether a refund is needed;
|
||||
* finds the `program_run_id` identifier and calls the `runs/{program_run_id}/cancel` method;
|
||||
* the `rides/cancel` handler completes operations on its level of responsibility and, depending on the coffee machine API kind, proceeds with one of two possible execution branches:
|
||||
* the `runs/cancel` handler completes operations on its level of responsibility and, depending on the coffee machine API kind, proceeds with one of two possible execution branches:
|
||||
* either calls the `POST /execution/cancel` method of a physical coffee machine API;
|
||||
* or invokes the `POST /v1/runtimes/{id}/terminate` method;
|
||||
* in a second case the call chain continues as the `terminate` handler operates its internal state:
|
||||
|
Loading…
x
Reference in New Issue
Block a user