1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-03-17 20:42:26 +02:00

Merge pull request #11 from dreig/patch-1

Fix typo in latitude constraints. Suggest alternative translation for coffee-machine step "shed_water"
This commit is contained in:
Sergey Konstantinov 2021-01-28 17:42:58 +03:00 committed by GitHub
commit 249d33ca5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -171,7 +171,7 @@ To be more specific, let's assume those two kinds of coffee machines provide the
// Operation type:
// * set_cup
// * grind_coffee
// * shed_water
// * pour_water
// * discard_cup
"type": "set_cup",
// Arguments available to each operation.

View File

@ -865,11 +865,11 @@ POST /v1/coffee-machines/search
"field": "position.latitude",
"error_type": "constraint_violation",
"constraints": {
"min": -180,
"max": 180
"min": -90,
"max": 90
},
"message":
"'position.latitude' value must fall within [-180, 180] interval"
"'position.latitude' value must fall within [-90, 90] interval"
}
]
}

View File

@ -161,7 +161,7 @@ POST /v1/orders
// Тип операции
// * set_cup — поставить стакан
// * grind_coffee — смолоть кофе
// * shed_water — пролить воду
// * pour_water — пролить воду
// * discard_cup — утилизировать стакан
"type": "set_cup",
// Допустимые аргументы для каждой операции

View File

@ -862,11 +862,11 @@ POST /v1/coffee-machines/search
"field": "position.latitude",
"error_type": "constraint_violation",
"constraints": {
"min": -180,
"max": 180
"min": -90,
"max": 90
},
"message":
"'position.latitude' value must fall in [-180, 180] interval"
"'position.latitude' value must fall in [-90, 90] interval"
}
]
}