Closed yillary closed 1 year ago
It works now! Gabe suggested I do my endpoint differently and that got the ball rolling again. Worked out some bugs in the code and now can run curl commands as long as they have a zip code and a type. It will run with or without criteria.
SearchTypeZip endpoint classes made. I was able to run some curl commands based on the template.yaml version it was running on. I changed the template.yaml file to make a gsi but didn't sam build it. So it was running these curl commands on the SearchTypeZip endpoint, but once it got to a dao call to the GSI it didn't know what to do, ( cuz I didn't sam build it with the gsi it wasn't aware of the gsi) So I deleted the stack and redeployed, but it didn't like the GSI cuz it's url endpoint conflicted with the GetItem endpoint url. So it won't be usable with the way that I've designed it.
I'm probably going to pivot and make it simple in the interest of getting the basics in place on the back and end the front end. I can make it more complicated after that. I will make the Search endpoint just /items/search.