-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add querystring_search get method (#1616)
* Add querystring_search get method. * Add changelog. * Fix doc generation. * Fix doc tests. * Fix doc test response. * Fix black. * Add docs. * Update docs/source/endpoints/querystringsearch.md Co-authored-by: Steve Piercy <web@stevepiercy.com> * Apply suggestions from code review Co-authored-by: Steve Piercy <web@stevepiercy.com> * Fix quotes. --------- Co-authored-by: Timo Stollenwerk <tisto@users.noreply.github.com> Co-authored-by: Steve Piercy <web@stevepiercy.com>
- Loading branch information
1 parent
ccecd23
commit c274e22
Showing
8 changed files
with
110 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add querystring_search get method. @robgietema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/plone/restapi/tests/http-examples/querystringsearch_get.req
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GET /plone/@querystring-search?query=%257B%2522query%2522%253A%255B%257B%2522i%2522%253A%2522portal_type%2522%252C%2522o%2522%253A%2520%2522plone.app.querystring.operation.selection.any%2522%252C%2522v%2522%253A%255B%2522Document%2522%255D%257D%255D%257D HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
23 changes: 23 additions & 0 deletions
23
src/plone/restapi/tests/http-examples/querystringsearch_get.resp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
|
||
{ | ||
"@id": "http://localhost:55001/plone/@querystring-search?query=%257B%2522query%2522%253A%255B%257B%2522i%2522%253A%2522portal_type%2522%252C%2522o%2522%253A%2520%2522plone.app.querystring.operation.selection.any%2522%252C%2522v%2522%253A%255B%2522Document%2522%255D%257D%255D%257D", | ||
"items": [ | ||
{ | ||
"@id": "http://localhost:55001/plone/front-page", | ||
"@type": "Document", | ||
"description": "Congratulations! You have successfully installed Plone.", | ||
"review_state": "private", | ||
"title": "Welcome to Plone" | ||
}, | ||
{ | ||
"@id": "http://localhost:55001/plone/testdocument", | ||
"@type": "Document", | ||
"description": "", | ||
"review_state": "private", | ||
"title": "Test Document" | ||
} | ||
], | ||
"items_total": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters