1
0
mirror of https://github.com/twirl/The-API-Book.git synced 2025-01-05 10:20:22 +02:00

Fix typo in latitude constraints. Suggest alternative translation for a coffee-machine step

This commit is contained in:
Andrei Galusca 2021-01-28 13:23:01 +02:00
parent cb2d9ef0a5
commit 4587860bb4
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"
}
]
}