Сервис возвращает ряд чисел Фибоначчи из предложенного среза чисел, например из ряда от 10 до 10 вернется единственное число 55
Стек микросервиса: lumen(PHP 8.2) + redis + nginx
cp .env.example .envGET http://localhost/fibonacci
Content-Type: application/jsonAccept params
{
"from": "integer|min 0|required",
"to": "integer|min 1|required"
}Success response:
{
"message": "success",
"set_of_numbers": [2, 3, 5],
"fibonacci_set_of_numbers": [0, 1, 1, 2, 3, 5, 8, 13, 21]
}Validation error example:
{
"from": [
"The from must be an integer."
],
"to": [
"The to must be an integer."
]
}