flask REST api for ARK