How to match types with a Model + returning a list of objects (JSON)
For the love of God, can someone please help me? I've spent hours on this and don't know what's wrong.
So, TLDR: I'm calling some GETs, webscraping for info (4 pieces of info: company, location, title, url), storing it in structs and trying to create a JSON array of objects to return to the user on a POST request (/get_jobs).
In the handler, configureAPI is killing me. I basically take the params from operations.myFileHere and pass it into my function (it's just a list of strings/URLs), but the return/response type is killing me. WithPayload is taking in *PostGetJobsOKBodyItems0. I called my struct in my file after this name (it's some generated one). And I return a list of pointers to structs but it still isn't happy....
How do I match the type of a model? Or how do I get the return type correct so that I can call WithPayload and it will all be good to go?