1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-08-10 21:51:42 +02:00

[Abstraction Levels Isolation]: typo rides->runs

This commit is contained in:
Marko Kaznovac
2022-06-08 15:15:23 +02:00
committed by GitHub
parent fd1b667cdc
commit 981c6fd97d

View File

@@ -360,7 +360,7 @@ Let's now look at how the order cancel operation flows through our abstraction l
* checks the authorization; * checks the authorization;
* solves money issues, i.e. whether a refund is needed; * 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; * 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; * either calls the `POST /execution/cancel` method of a physical coffee machine API;
* or invokes the `POST /v1/runtimes/{id}/terminate` method; * 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: * in a second case the call chain continues as the `terminate` handler operates its internal state: