mirror of
https://github.com/bigskysoftware/hypermedia-systems.git
synced 2025-07-31 00:02:06 -04:00
Compare commits
6 Commits
74f25213c0
...
fb0408b751
Author | SHA1 | Date | |
---|---|---|---|
|
fb0408b751 | ||
|
d070b30385 | ||
|
6903c23fae | ||
|
5298de9b1a | ||
|
7e9779d49e | ||
|
ac42284268 |
@ -336,7 +336,7 @@ In the interest of keeping our application simple, we are going to omit that mor
|
||||
|
||||
We have updated the client-side code (if HTML can be considered code) so it now issues a `DELETE` request to the appropriate
|
||||
URL, but we still have some work to do. Since we updated both the route and the HTTP method we are using, we are going to
|
||||
need to update the server-side implementation as well to handle this new HTTP Request.
|
||||
need to update the server-side implementation as well to handle this new HTTP request.
|
||||
|
||||
.The original server-side code for deleting a contact
|
||||
[source, python]
|
||||
|
@ -276,6 +276,7 @@ both buttons in a `div` and eliminate the redundant `hx-target` specification by
|
||||
Here is our updated code:
|
||||
|
||||
(((hx-sync, example)))
|
||||
|
||||
.Syncing two buttons
|
||||
[source, html]
|
||||
----
|
||||
|
@ -128,6 +128,7 @@ Note that by splitting these two APIs apart, you reduce the pressure to constant
|
||||
This is the key advantage of splitting your Data API from your Hypermedia API.
|
||||
|
||||
((("REST API")))
|
||||
|
||||
.JSON Data APIs vs JSON "`REST`" APIs
|
||||
****
|
||||
Unfortunately, today, for historical reasons, what we are calling JSON Data APIs are often referred to as
|
||||
|
Loading…
x
Reference in New Issue
Block a user