1
0
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:
Sergey Konstantinov 2022-06-08 16:23:45 +03:00 committed by GitHub
commit 08e565afce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: