▲ | endigma 4 days ago | ||||||||||||||||
This site makes a big point of using the term "RESTful" repeatedly, but it seems to be JSON-based by default? I don't know why modern web frameworks insist on continuing to misuse or misapply the term despite a fairly large amount of messaging recently about how exactly this term is misapplied, and the resurgence of frameworks and tools that do correctly apply it, e.g. HTMX, Datastar, Alpine AJAX. Otherwise, this looks cool. I'd encourage you to un-roll-your-own docs and use something like Starlight or Docusaurus so you can have usable search and versioned docs. | |||||||||||||||||
▲ | _heimdall 4 days ago | parent | next [-] | ||||||||||||||||
That's a fight we lost two decades ago now unfortunately. Nearly any modern-ish API is a JSON-based RPC. There's nothing wrong with that, JSON RPC is a plenty fine solution for many common use cases, it just isn't REST. | |||||||||||||||||
| |||||||||||||||||
▲ | elcritch 4 days ago | parent | prev | next [-] | ||||||||||||||||
Being RESTful and the data encoding used are largely orthogonal aspects of an API. Wikipedia RESTful article says: > The formal REST constraints are as follows:[10] > Client/Server – Clients are separated from servers by a well-defined interface > Stateless – A specific client does not consume server storage when the client is "at rest" > Cache – Responses indicate their own cacheability > Uniform interface > Layered system – A client cannot ordinarily tell whether it is connected directly to the end server, or to an intermediary along the way | |||||||||||||||||
| |||||||||||||||||
▲ | 4 days ago | parent | prev | next [-] | ||||||||||||||||
[deleted] | |||||||||||||||||
▲ | jadbox 3 days ago | parent | prev | next [-] | ||||||||||||||||
What do you think of HTMX vs Datastar for a new production app? Any key reasons to use one over the other? | |||||||||||||||||
▲ | dustbunny 3 days ago | parent | prev [-] | ||||||||||||||||
Ha I came here to complain about the same thing. Kinda makes me disappointed in the authors especially when they link to the REST wikipedia page as if they know what it means. |