4 ms·
I see you haven't encountered an API where a GET command can modify the database.
by hnuser123456 6mo ago
I see you haven't encountered an API where a GET command can modify the database.
- adithyassekhar 6mo agoNow why would you make such a monstrosity? Audit logs? I was having good day till now.
- asa400 6mo agoSimilarly, I once worked somewhere that had an HTTP API that returned status code 200 {“error”: “ok”} to indicate an error occurred.
- Schiendelman 6mo agoA lot of GraphQL APIs are like this! They return a 200 just to mean the damn GraphQL is well formed, and the call can totally fail underneath.
- ditchfieldcaleb 6mo agoSay what now
- IshKebab 6mo agoI have not either. What's your point? AI isn't perfect.
- esafak 6mo agoI saw a code base where SQL UDFs were used to mutate the data with SELECTs...