I am developing a flask application separating API and the service layer. For example, I have one service named ServiceOne and another ServiceTwo. I want to invoke serviceTwo's post method from serviceOne. Hence serviceTwo's post method read data using flask request then what is the right way to do that?
#service 1:
service_two = ServiceTwo()
req_data = {'': '', '':''}
service_two.post()
#service 2:
from flask import request
def post():
req_data = request.json
P.S: I want to avoid going through controller layer to access the service because as far I know this is not good practice to call controller layer within the service layer.