All in all, your first RESTful API in Python is about piecing together clear endpoints, matching them with the right HTTP ...
Calling API services from inside a Spark context is a bad practice One way to address this would be to have a Spark process which shuffles and divides the data itself, and as part of the enrichment ...