curl --request POST \
--url http://localhost:8080/menu-layout/buttons/swap \
--header 'Content-Type: application/json' \
--data '
{
"button_id_1": "<string>",
"button_id_2": "<string>"
}
'{
"button_1": {},
"button_2": {}
}Обменять местами две кнопки (даже из разных строк).
curl --request POST \
--url http://localhost:8080/menu-layout/buttons/swap \
--header 'Content-Type: application/json' \
--data '
{
"button_id_1": "<string>",
"button_id_2": "<string>"
}
'{
"button_1": {},
"button_2": {}
}