Queries endpoint support#241
Conversation
2af6b8d to
ddd2980
Compare
flimzy
left a comment
There was a problem hiding this comment.
Should the queries parameter not be added to the existing POST /{db}/_all_docs documentation? Having a separate example like this is probably still useful, but since the new functionality is added to an existing endpoint, I would hate not to have complete documentation in one canonical place, as well.
| :synopsis: Returns results for the specified queries | ||
|
|
||
| Executes multiple specified built-in view queries of all documents in this | ||
| database. This enables you to request multiple documents in a single |
There was a problem hiding this comment.
I wonder if it would be worth explaining in more detail that (as I understand) this allows combining the results of multiple queries, not just multiple documents (_all_docs already returns multiple documents, so I can see room for confusion, upon a cursory read of this statement). Perhaps something like:
This enables you to request the results of multiple queries in a single request, in place of ...
886584d to
5a6a6bd
Compare
|
Thanks Jonathan @flimzy. I just added commit to change Regarding comment below
I think that I need to mention that this is newly added feature. Making separate section can help explain the difference between previous feature and new feature. In addition, reader can easily find the newly added section because it is just near to |
Sure. I didn't mean to suggest there shouldn't also be a new section to highlight the added functionality, just that it might be nice to ensure that the existing endpoint documentation also contains the full documentation for that endpoint. |
|
Cool, thanks @flimzy for your clarification and review. |
|
@jiangphcn please mesh this with apache/couchdb#820 and #244 so that we get the right documentation in the upcoming 2.2.0 release, please. Thanks! |
|
Okay Joan. Will do soon. |
fd68264 to
1336ca3
Compare
|
@flimzy,Hey Jonathan, could you please review this PR? This is because we adjust endpoints to
|
| :code 200: Request completed successfully | ||
| :code 400: Invalid request | ||
| :code 401: Read permission required | ||
| :code 404: Specified database is missed |
| :code 200: Request completed successfully | ||
| :code 400: Invalid request | ||
| :code 401: Read permission required | ||
| :code 404: Specified database, design document or view is missed |
|
|
||
| .. warning:: | ||
| Using POST to /{db}/_design/{ddoc}/_view/{view} is still supported and | ||
| allows to get multiple query result to a view. This is described below. |
|
Looks like there is a conflict that needs to be resolved in |
5d5a49e to
9470572
Compare
- POST /{db}/_all_docs/queries
Executes multiple specified built-in view queries of all documents
in this database. This enables you to request multiple documents
in a single request, in place of multiple POST /{db}/_all_docs requests.
issue 820
9470572 to
e4e0fba
Compare
Overview
Document new feature for multiple queries against POST
/{db}/_all_docs/queries. This allows to execute multiple specified built-in view queries of all documents in specified database. This enables you to request multiple documents in a single request, in place of multiple POST/{db}/_all_docsrequests.The multiple queries are also supported in
/db/_local_docs/queriesand/db/_design_docs/queries(similar to/db/_all_docs/queries).In addition, the multiple queries against view are supported in newly introduced endpoint
/{db}/_design/{ddoc}/_view/{view}/querieTesting recommendations
see apache/couchdb#1032
GitHub issue number
Issue #820
Related Pull Requests
apache/couchdb#820
apache/couchdb#1222
Checklist
make checkpasses with no errors