docs: a to-do app as the example schema in the docs, fixtures and tests
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ const response = await rest.handle({ method, path, query, headers, body, context
|
||||
// { status, headers, body }
|
||||
```
|
||||
|
||||
`handle` never throws: every failure is a response. `path` is the path below where the API is mounted (`/assets/4`), `query` a `URLSearchParams`, `body` the parsed JSON.
|
||||
`handle` never throws: every failure is a response. `path` is the path below where the API is mounted (`/todos/4`), `query` a `URLSearchParams`, `body` the parsed JSON.
|
||||
|
||||
## Node
|
||||
|
||||
|
||||
Reference in New Issue
Block a user