REST for HTTP GET("http://localhost:8080/available-period") returns JSON with data according to the bizarre task specification (see README.md)
Result example:
{
"2022":["31 декабря 2022", "01 января 2023", "01 февраля 2023", "01 марта 2023", "01 апреля 2023", "01 мая 2023", "01 июня 2023", "01 июля 2023", "01 августа 2023", "01 сентября 2023", "01 октября 2023"],
"2021":["31 декабря 2021", "01 января 2022", "01 февраля 2022", "01 марта 2022", "01 апреля 2022", "01 мая 2022", "01 июня 2022", "01 июля 2022", "01 августа 2022", "01 сентября 2022", "01 октября 2022", "01 ноября 2022", "01 декабря 2022"],
"2020":["31 декабря 2020", "01 января 2021", "01 февраля 2021", "01 марта 2021", "01 апреля 2021", "01 мая 2021", "01 июня 2021", "01 июля 2021", "01 августа 2021", "01 сентября 2021", "01 октября 2021", "01 ноября 2021", "01 декабря 2021"]
}
REST must be covered with integration tests at least with the next three cases:
Test will be passed in 10 years in the future too.
Logic specification
Year_1 == 2022
monthDate (in russian):
Year_2 == 2021
monthDate:
Year_3 == 2020
monthDate: