rest in flask