From 393b0bb70c1c9a308005bb18a34e722b0a07623b Mon Sep 17 00:00:00 2001 From: Carson Gross Date: Mon, 26 Jun 2023 08:53:24 -0600 Subject: [PATCH] format --- www/content/essays/_index.md | 1 + www/content/essays/rest-copypasta.md | 21 ++++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/www/content/essays/_index.md b/www/content/essays/_index.md index 8a22fea0..5d47da9a 100644 --- a/www/content/essays/_index.md +++ b/www/content/essays/_index.md @@ -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 diff --git a/www/content/essays/rest-copypasta.md b/www/content/essays/rest-copypasta.md index 32e95088..3d6c538d 100644 --- a/www/content/essays/rest-copypasta.md +++ b/www/content/essays/rest-copypasta.md @@ -8,13 +8,15 @@ tag = ["posts"] show_title = false +++ -# For Reference +# Ackshually... + +
-``` 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. -``` \ No newline at end of file + +
\ No newline at end of file