Closed gparuthi closed 4 years ago
This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click on the icon next to each commit.
- what endpoint is being hit? where it is defined? how is it defined?
POST: /api/loan_request
loan_request_object
- where would we change what the ednpoint is returning?...e.g. to return the id of the created request
The endpoint creates S3 object and returns success
/ error
- how can we call this from a component in the frontend? Maybe let's build a simple component with a button that says send-request which would then send the fixture and display the actual response from S3 (something really simple like "your request id is XXXX you will be informed via email"
I added an example here
- how does the S3 bit fit into our general architecture? (We do want to keep info on request-data in our DB too, don't we?
It acts as a message-queue
- How do we test this?
Not sure yet. Integration testing is hard.
This will be read and processed by swarmaAI module. See: https://github.com/ArboreumDev/swarmai/pull/18