Merge pull request #2965 from amorken/docfix-query

(Website doc fix, trivial) Prepared query creation uses POST, not PUT
pull/2949/merge
James Phillips 2017-04-27 06:40:03 -07:00 committed by GitHub
commit 2bc3dc0e15
1 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ successfully.
| Method | Path | Produces | | Method | Path | Produces |
| ------ | ---------------------------- | -------------------------- | | ------ | ---------------------------- | -------------------------- |
| `PUT` | `/query` | `application/json` | | `POST` | `/query` | `application/json` |
The table below shows this endpoint's support for The table below shows this endpoint's support for
[blocking queries](/api/index.html#blocking-queries), [blocking queries](/api/index.html#blocking-queries),
@ -224,7 +224,7 @@ The table below shows this endpoint's support for
```text ```text
$ curl \ $ curl \
--request PUT \ --request POST \
--data @payload.json \ --data @payload.json \
https://consul.rocks/v1/query https://consul.rocks/v1/query
``` ```