This commit is contained in:
Carson Gross 2023-06-26 08:53:24 -06:00
parent 84b25cd31c
commit 393b0bb70c
2 changed files with 13 additions and 9 deletions

View File

@ -21,6 +21,7 @@ insert_anchor_links = "left"
* [Template Fragments](@/essays/template-fragments.md)
* [10 Tips For Building SSR/HDA applications](@/essays/10-tips-for-SSR-HDA-apps.md)
* [View Transitions](@/essays/view-transitions.md)
* [REST Copypasta](@/essays/rest-copypasta.md)
### Older [intercooler.js](https://intercoolerjs.org) Essays

View File

@ -8,13 +8,15 @@ tag = ["posts"]
show_title = false
+++
# For Reference
# Ackshually...
<div style="font-family: monospace">
```
I'd just like to interject for a moment. What you're referring to as REST,
is in fact, JSON/RPC, or as I've recently taken to calling it, REST-less.
JSON is not a hypermedia unto itself, but rather a plain data format made useful
by out of band information as defined by swagger documentation or similar.
JSON is not a hypermedia unto itself, but rather a plain data format made
useful by out of band information as defined by swagger documentation or
similar.
Many computer users work with a canonical version of REST every day,
without realizing it. Through a peculiar turn of events, the version of REST
@ -23,9 +25,10 @@ not aware that it is basically the REST-ful architecture, defined by Roy Fieldin
There really is a REST, and these people are using it, but it is just a
part of The Web they use. REST is the network architecture: hypermedia encodes the state
of resources for hypermedia clients. JSON is an essential part of Single Page Applications,
but useless by itself; it can only function in the context of a complete API specification. JSON is
normally used in combination with SPA libraries: the whole system
is basically RPC with JSON added, or JSON/RPC. All the so-called "REST-ful"
of resources for hypermedia clients. JSON is an essential part of Single Page Applications,
but useless by itself; it can only function in the context of a complete API specification.
JSON is normally used in combination with SPA libraries: the whole system
is basically RPC with JSON added, or JSON/RPC. All these so-called "REST-ful"
APIs are really JSON/RPC.
```
</div>