Passing a request object (from unmarshalling request from infrastructure) to the usecase as a parameter. Cannot do this as breaks layering rules (inner layers know nothing about out layers). I have used dependency inversion, created an interface Request which is implemented by the request being passed to the usecase. Yet setting the type of the parameter in the usecase method ie Request product instead of ProductAvailabilityRequest product, causes error.
Should I just pass the string (product name) rather than the ProductAvailabilityRequest?
How can I get the above problem working?
Does it matter that I just pass the object instead of the interface?
Now
Turn params into a rquest objectpass request to usecaserespond with request been processedAccess query parametersbash script to run sql file from bashSetup docker container-- Bash script to run sql via docker , using path where sql file is running on dockerLogging Http request and response via servlet filters ()