Commit 1dc666c
committed
Duplicate questions in memory to in db
to allow seeing the refactor to using a database
tested with:
export QID=`uuidgen`
🄲 reate
curl localhost:1337/questions \
-H "Content-Type: application/json" \
-d '{"id":"'$QID'","title":"the title","content":"the content"}'
🅁 ead
curl localhost:1337/question/$QID
🅄 pdate
curl -X PUT \
localhost:1337/questions/$QID \
-H 'content-type: application/json' \
-d '{"id":"'QID'","title":"NOT","content":"NOT"}'
🄳 elete
curl -X DELETE localhost:1337/questions/$QID
🄻 ist
curl localhost:1337/questions1 parent 2a672a7 commit 1dc666c
File tree
17 files changed
+2825
-0
lines changed- lang/rust/rust_web_development/question_in_db_crud
- handle-errors
- src
- src
- routes
- types
17 files changed
+2825
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments