Everywhere: Implement HTMX todo page

This commit is contained in:
Riyyi
2024-11-17 02:27:50 +01:00
parent 56dcd4fb35
commit 6b93045514
17 changed files with 373 additions and 124 deletions
+5 -5
View File
@@ -14,7 +14,7 @@
# ------------------------------------------
GET http://localhost:8080/todos
GET http://localhost:8080/api/todos
-> jq-set-var :id .[0].id
Accept: application/json
@@ -22,12 +22,12 @@ Accept: application/json
# ------------------------------------------
GET http://localhost:8080/todos/:id
GET http://localhost:8080/api/todos/:id
Accept: application/json
# ------------------------------------------
POST http://localhost:8080/todos
POST http://localhost:8080/api/todos
-> run-hook (restclient-set-var ":id" (cdr (assq 'id (json-read))))
Accept: application/json
Content-Type: application/json
@@ -38,7 +38,7 @@ Content-Type: application/json
# ------------------------------------------
PUT http://localhost:8080/todos/:id
PUT http://localhost:8080/api/todos/:id
-> run-hook (restclient-set-var ":id" (cdr (assq 'id (json-read))))
Accept: application/json
Content-Type: application/json
@@ -55,7 +55,7 @@ Content-Type: application/json
# INSERT(INSERT(INSERT(INSERT(HEX(id), 9, 0, '-'), 14, 0, '-'), 19, 0, '-'), 24, 0, '-') AS id,
# title FROM riyyi.todos;
DELETE http://localhost:8080/todos/:id
DELETE http://localhost:8080/api/todos/:id
Accept: application/json
# ------------------------------------------