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:
parent
cb2d9ef0a5
commit
4587860bb4
@ -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.
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ POST /v1/orders
|
||||
// Тип операции
|
||||
// * set_cup — поставить стакан
|
||||
// * grind_coffee — смолоть кофе
|
||||
// * shed_water — пролить воду
|
||||
// * pour_water — пролить воду
|
||||
// * discard_cup — утилизировать стакан
|
||||
"type": "set_cup",
|
||||
// Допустимые аргументы для каждой операции
|
||||
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user