Everywhere: Implement HTMX todo page
This commit is contained in:
@@ -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
|
||||
|
||||
# ------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user