Creating Rest Api Endpoints In Python An Array