I have a Django app that requests data from an external API and my goal is to convert that data which is returned as list/dictionary format into a new REST API with a Geojson format.
I came across django-rest-framework-gis
but I don't know if I could use it without having a Model. But if so, how?
I think the best way is to use the python library geojson
If you do not have a Model like in geodjango you have to explicitly describe the geometry from the data you have.
Result:
More Info here: Documentation Geojson Library