frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

What it means for an API to be RESTful

https://en.andros.dev/blog/9761fd2e/what-it-means-for-an-api-to-be-restful/
18•ibobev•1h ago

Comments

gorkemyildirim•1h ago
One thing missing from the hypermedia section: links do not have to live in the payload. RFC 8288 lets you carry the same relations in a Link header, and for some clients that is the only place they look. I advertise a markdown twin of a page as Link: </llms.txt>; rel="describedby"; type="text/markdown" for exactly that reason, no body parsing needed.

Conditional requests feel like the other omission. ETag and 304 are part of the same "use HTTP as intended" argument, and they change client behaviour more often than whether someone hardcoded a route.

mwigdahl•59m ago
Well, this inevitable flamewar will be a nice change from the pro-AI / anti-AI comment threads, at least...
janpio•52m ago
Are you sure it is not just a AI authored rehash of the thousands of articles online that make the same points already?
mwigdahl•45m ago
Nice! Not 100% sure, but it reads very human to me. The only LLM-ism that jumped out at me was "An honest note before we continue", but that was the only time the word "honest" appeared. If it's not human-written it does an exceptionally good job of appearing so.
f6v•26m ago
I thought we were back in 2012 for a second after I read the title
jaapz•24m ago
Maybe somebody should comment in this thread about GraphQL being better than RESTful API's - then I'd really feel right at home back in 2014
krisknez•48m ago
GET /api/add-a-comment?message=disagree
1718627440•20m ago
'(to) comment' is already a verb.
tgv•17m ago
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
1718627440•13m ago
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
Alifatisk•16m ago
You’re using GET to Post a comment. Feels like another method is more appropriate.

Update: It clicked now…

soco•7m ago
GET /it?now
prologic•45m ago
Isn't this well defined already? https://en.wikipedia.org/wiki/REST

> REST (Representational State Transfer) is a software architectural style that was created to describe the design and guide the development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of a distributed, Internet-scale hypermedia system, such as the Web, should behave.

And isn't it always misused, mis-represented basically all the time? Often confused with things that are basically just JSON API(s)?

prologic•35m ago
It's kind of interesting to go through the examples in the article, because it largely really describes a HAL-style JSON API really. It in parts also described the Web Linking Standard (RFC 8288) too.
wun0ne•26m ago
> And isn't it always misused, mis-represented basically all the time? Often confused with things that are basically just JSON API(s)?

The article makes this point.

prologic•24m ago
I could be wrong, but I also think the article kind of gets it wrong too
IshKebab•28m ago
Any descriptive term where people can't agree on what it means is completely useless. So there's no point trying to argue "REST means this" - the fact that so many people have done that already makes it pointless.
CodingJeebus•25m ago
The most bulletproof way to get a bunch of people on the internet to read your stuff is to tell them they're all wrong, never fails.
recursivedoubts•23m ago
Here is how REST came to mean the opposite of REST:

https://htmx.org/essays/how-did-rest-come-to-mean-the-opposi...

And here is why REST is probably largely pointless in machine-to-machine APIs:

https://intercoolerjs.org/2016/05/08/hatoeas-is-for-humans.h...

Octoth0rpe•22m ago
> They usually live under the _links parent.

The example given in this section... is there actually a commonly used REST api that uses that particular key/structure? I wouldn't be _surprised_ if I came across that in some random API's documentation, but I hardly think it's the 'usual' thing to do.

The article later claims that that style is from https://stateless.co/hal_specification.html , which I think is a consultancy company whose major partners are all casinos (am I totally off on this?). The article also references (https://github.com/kevinswiber/siren which adds detail re: http methods embedded in the _links structure, but I'm not sure why that repo should be considered authoritative. 1300 stars for a just a spec is actually not bad though I think, so maybe.

Overall this article seems like slop produces from some kind of ai crawler that managed to dig up a couple of random links.

I am glad that it mentions rfc9457 though.

codinhood•17m ago
REST seems to bring out people who like to define specs and correct others on following the spec or not. There are many other things in tech like this.

To be honest, I just kind of don't understand the point. Could my API be better following some of these rules the author presented? Probably. But by how much? Is it worth it? When someone else on my team disagrees do we go back and argue about the spec again?

After 12+ years I'm just not sure anymore. If I'm using REST incorrectly (according to this article or others), but getting good results and everyone on the team is aligned, does it matter? I'm willing to have my mind changed this, maybe I'm missing something important

1718627440•11m ago
The point is to externalize the thinking about the desired nirvana state, so that you don't need to thing about them, when you code your API.
codinhood•8m ago
Sure, ideally, but if no one can agree on the spec (as evidenced by the need for these types of articles,) then it's not really saving me much effort is it?

Better to just pick something and go with it, then argue about the spec more

dzonga•13m ago
whole thing about RESTful api - majority of people never understood it - few people like the htmx crowd tried to bring it up again to teach people the right way.

but people who didn't understand rest some of them migrated to graphql or rpc.

'VPNs are lawful technical tools,' says EU Court in landmark copyright ruling

https://remysharp.com/links/2026-07-23-35890312
165•speckx•1h ago•52 comments

RFC 8890 – The Internet is for End Users (2020)

https://mnot.net/blog/2020/for_the_users
28•notarobot123•1h ago•7 comments

Why Is Everyone Trying to Build a Solid-State Battery?

https://www.construction-physics.com/p/why-is-everyone-trying-to-build-a
31•crescit_eundo•1h ago•21 comments

How Old Is Ann?

https://quuxplusone.github.io/blog/2026/07/29/how-old-is-ann/
25•ibobev•1h ago•13 comments

Gpiozero Flow

https://bennuttall.com/blog/2026/07/gpiozero-flow/
91•benn_88•3h ago•28 comments

Launch HN: Prized (YC S26) – Let non-engineer staff build secure internal tools

https://prized.dev
10•marinoseliades•43m ago•0 comments

Why Don't People Use Formal Methods?

https://www.hillelwayne.com/post/why-dont-people-use-formal-methods/
33•Thom2503•1h ago•19 comments

Ron Gilbert started production on Thimbleweed Park 2

https://www.grumpygamer.com/twp2_announce/
119•alberto-m•6h ago•42 comments

AI's top startups are barely publishing their research

https://www.science.org/content/article/ai-s-top-startups-are-barely-publishing-their-research
559•YeGoblynQueenne•16h ago•291 comments

Mbodi AI (YC P25) Is Hiring Robotics/Research Engineers

https://www.ycombinator.com/companies/mbodi-ai/jobs
1•chitianhao•2h ago

Agent-Manager: A Tmux TUI for Running Claude Code, Codex and OpenCode

https://github.com/YoanWai/agent-manager
57•yoanwaidev•4h ago•40 comments

I made a game where you build a CPU from logic gates

https://select.supply/game/chipbuilder
29•laurentiurad•2h ago•18 comments

Carolina Cloud pays SOFR on unused prepaid credits

https://docs.carolinacloud.io/organizations/prepaid-interest/
50•bojangleslover•4h ago•29 comments

The coolest use for the Vision Pro

https://christianselig.com/2026/07/vision-pro-house/
766•robbiet480•17h ago•289 comments

3D Pinball for Windows (1995)

https://98.js.org/programs/pinball/space-cadet.html
15•mushstory•2h ago•4 comments

The Glass Famine

https://edconway.substack.com/p/the-glass-famine
54•baud147258•2d ago•21 comments

Go LLM SDK for streaming, tool-calling AI backends (plus frontend React lib)

https://github.com/grafana/ai-sdk
21•matryer•2h ago•5 comments

LLM Honeypot

https://llm2human.pages.dev/
341•8thom•15h ago•94 comments

Google will expand age checks on Android worldwide till the end of the year

https://android-developers.googleblog.com/2026/07/google-play-age-signals-api-safer-experiences.html
192•dmantis•3h ago•222 comments

The first watch featuring computer functions

https://by.seiko-design.com/140th/en/topic/58.html
52•stefanv•4d ago•24 comments

GCC steering committee announces AI policy

https://lwn.net/Articles/1086041/
143•arto•2h ago•154 comments

You can't solve computer use by ignoring the interface

https://steelmanlabs.com/blog/computer-use-is-far-from-solved
18•mpavlov•2h ago•1 comments

The Productivity Mirage

https://frantic.im/mirage/
305•msephton•14h ago•135 comments

Azulejo

https://en.wikipedia.org/wiki/Azulejo
96•Amorymeltzer•1d ago•33 comments

Are We Stuck with Lean?

https://mathoverflow.net/questions/513742/are-we-stuck-with-lean
13•jjgreen•2h ago•1 comments

CosmosEscape: Taking over Every Database in Azure Cosmos DB

https://www.wiz.io/blog/cosmosescape-taking-over-every-database-in-azure-cosmos-db
13•uvuv•1h ago•5 comments

ChatGPT, Roblox to Fall Under Strictest EU Rules for Platforms

https://www.bloomberg.com/news/articles/2026-07-29/chatgpt-roblox-to-fall-under-strictest-eu-rule...
43•ch_sm•2h ago•28 comments

The Alice and Bob After Dinner Speech (1984)

https://hex.ooo/library/alicebob.html
3•kamma4434•3d ago•1 comments

Anatomy of a Frontier Lab Agent Intrusion: A Timeline of the July 2026 Incident

https://huggingface.co/blog/agent-intrusion-technical-timeline
432•artninja1988•1d ago•234 comments

The Cold Email

https://zachholman.com/posts/cold-email
264•holman•17h ago•102 comments