CRUD Patterns

← Overview

Items

IDNameStatusNotesActions
1Widget AlphaactiveFirst demo item
2Gadget BetainactiveSecond demo item
3Doohickey GammaactiveThird demo item

Create

POST /hypermedia/crud/items

Appends a new row by posting a form and swapping the placeholder row with the returned row fragment.

Edit

GET /hypermedia/crud/items/:id/edit

Replaces the display row with an inline edit form (outerHTML swap).

Update (PUT)

PUT /hypermedia/crud/items/:id

Submits the edit form; server returns the updated display row.

Patch (toggle)

PATCH /hypermedia/crud/items/:id/toggle

Flips the status field without a full edit form.

Delete

DELETE /hypermedia/crud/items/:id

Removes the row from the DOM via hx-swap="delete" (no server fragment returned).