Creating Rest Api Endpoints In Python Program A Controller Button