well, if you are using a hypermedia style application then you want to make a hypermedia exchange on an interaction to bring down the hypermedia representation for editing a particular resource
https://htmx.org/essays/hypermedia-friendly-scripting
In general, I'd recommend perusing the essays to get a flavor of the style of web application we are advocating for:
And, if you want more, taking a look at our book: