Does anyone have advice for best practices in structuring the JSON data from an external REST API (which I am developing in Python) for the most seamless consumption by OutSystems?

Even further, does anyone have any best practices for converting Pandas DataFrames into a good response for OutSystems to consume via REST?

Having a Swagger file would help a lot. 


Outsystems supports swagger files and makes consuming rest API easier


Not sure how to Do in Python, Maybe the below link helps.

https://swagger.io/blog/api-development/automatically-generating-swagger-specifications-wi/ 

Not Big user of Python but I think the below link helps

https://pypi.org/project/rest-pandas/