You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/05/29 12:49:46 UTC
[GitHub] [couchdb-documentation] mojito317 opened a new pull request #555: Fix method type to POST in /{db}/_partition/{partition_id}/_explain and /{db}/_partition/{partition_id}/_find
mojito317 opened a new pull request #555:
URL: https://github.com/apache/couchdb-documentation/pull/555
## Overview
I was facing [/{db}/_partition/{partition_id}/_find](https://docs.couchdb.org/en/stable/api/partitioned-dbs.html?highlight=_partition#get--db-_partition-partition_id-_find) and [/{db}/_partition/{partition_id}/_explain](https://docs.couchdb.org/en/stable/api/partitioned-dbs.html?highlight=_partition#get--db-_partition-partition_id-_explain) were documented as `GET` methods, however both of them are `POST`. I was testing them and both returned with the following when I was using `GET`:
```
curl --location --request GET 'localhost:5984/{db}/_partition/{partition}/_explain' \
--header 'Authorization: Basic ***'
```
```
curl --location --request GET 'localhost:5984/{db}/_partition/{partition}/_find' \
--header 'Authorization: Basic ***'
```
```json
{
"error": "method_not_allowed",
"reason": "Only POST allowed"
}
```
## Checklist
- [ ] Update [rebar.config.script](https://github.com/apache/couchdb/blob/master/rebar.config.script) with the commit hash once this PR is rebased and merged
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [couchdb-documentation] rnewson merged pull request #555: Fix method type to POST in /{db}/_partition/{partition_id}/_explain and /{db}/_partition/{partition_id}/_find
Posted by GitBox <gi...@apache.org>.
rnewson merged pull request #555:
URL: https://github.com/apache/couchdb-documentation/pull/555
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org