Skip to content

Commit

Permalink
Merge pull request #550 from DaBigBlob/main
Browse files Browse the repository at this point in the history
make http api v0 docs consistent with code in libsql-server/src/http/user/mod.rs:339 (impl UserApi<M, A, O, S>, configure)
  • Loading branch information
psarna authored Nov 2, 2023
2 parents 983871c + 7891140 commit 9323ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libsql-server/docs/http_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Where `T` is the type of the payload in case of success.
#### Queries

```
POST /queries
POST /
```

This endpoint supports sending batches of queries to the database. All of the statements in the batch are executed as part of a transaction. If any statement in the batch fails, an error is returned and the transaction is aborted, resulting in no change to the database.
Expand All @@ -70,7 +70,7 @@ Queries are either simple strings or `ParamQuery` that accept parameter bindings

##### Response Format

On success, a request to `POST /query` returns a response with an HTTP 200 code and a JSON body with the following structure:
On success, a request to `POST /` returns a response with an HTTP 200 code and a JSON body with the following structure:
```
type BatchResponse = {
results: Array<QueryResult>,
Expand Down

0 comments on commit 9323ec1

Please sign in to comment.