Introduction
I received an interesting data request and noted this would make a useful endpoint on the API.
The first victory was first addressing and completing the request before finding a way to automate the process.
The second victory was getting the end point to work after testing the function.
However, when I tried to test out the endpoint again it stopped working. i was receiving a 404 error non response. This did not make sense as the other endpoints were working fine.
Troubleshooting Steps
Restart R
Restart computer
Compare other functions in the plumber function.
I started to suspect the issue was in my filter function. I am still not clear on the reason but Chat GPT game some suggestions on my code. Straight up it started working after I took the suggestions.
Chat GPT
Here is the link to the chat