p.enthalabs

Why don't AI coding tools like REST?

news.ycombinator.com · Read Story HN original

Is it just me, or do AI coding tools tend to generate RPC-style endpoints and POST methods (even when GET is clearly all that is needed) instead of following RESTful conventions?

Given how advanced these models are, I'm wondering if this is intentional. Is AI saying it has determined that strict REST isn’t a practical standard all around? Or is it just a byproduct of token efficiency or....?

I know I can steer the output with better prompting, but I'm curious whether there's a real underlying reason for this almost all-the-time output.

Comments

What model are you using? I don't think I've encountered it before. But then again, as long as you explicitly instruct an AI to follow REST, it usually will.
I have been using VScode with GitHub AI assistant and I asked the AI many times to set up the REST API it did work