I'm a newbie to the Portal API for Python, and I am just trying to figure out how to go from geojson loaded into memory (say, a WFS response object) to a feature layer on an ArcGIS Enterprise portal. I'm happy to read documentation and follow examples, but everything I've seen involves messing around with CSVs and pandas (which then requires cleaning up field headings etc).
Additionally all the questions seem to presuppose you have a geojson file sitting around, but what about when you want to avoid the IO overhead? Seems silly to write the content out to a file, only to read it right back in again.
Is there a more-or-less direct path to go from the data in the buffer, in json format, right to a new feature layer?
I have not performed this workflow myself but this would be my approach.