失败响应长什么样
读一条不存在的任务:
响应里 ok 这个字段的值是什么?
$ curl -s http://127.0.0.1:8000/tasks/99
{"ok": false, "error": "task not found"}
读一条不存在的任务:
响应里 ok 这个字段的值是什么?
$ curl -s http://127.0.0.1:8000/tasks/99
{"ok": false, "error": "task not found"}
全部评论