-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add query param to search registry records. (#1861)
* add query param to search registry records. * refactor serializer. * format using black. * use tmp registry isntead of seperate serializer class. * udpate http resp files * update docs. * update docs. * version added * Update docs/source/endpoints/registry.md * Apply suggestions from code review --------- Co-authored-by: Steve Piercy <[email protected]> Co-authored-by: David Glick <[email protected]>
- Loading branch information
1 parent
b8f1594
commit 88f2bc9
Showing
7 changed files
with
105 additions
and
1 deletion.
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 @@ | ||
In the `@registry` endpoint, added support for filtering the list of registry records. @Faakhir30 |
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/registry_get_list_filtered.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/@registry?q=Products.CMFPlone HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
57 changes: 57 additions & 0 deletions
57
src/plone/restapi/tests/http-examples/registry_get_list_filtered.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,57 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
|
||
{ | ||
"@id": "http://localhost:55001/plone/@registry?q=Products.CMFPlone", | ||
"items": [ | ||
{ | ||
"name": "Products.CMFPlone.i18nl10n.override_dateformat.Enabled", | ||
"schema": { | ||
"properties": { | ||
"description": "Override the translation machinery", | ||
"factory": "Yes/No", | ||
"title": "Enabled", | ||
"type": "boolean" | ||
} | ||
}, | ||
"value": false | ||
}, | ||
{ | ||
"name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_long", | ||
"schema": { | ||
"properties": { | ||
"description": "Default value: %Y-%m-%d %H:%M (2038-01-19 03:14)", | ||
"factory": "Text line (String)", | ||
"title": "old ZMI property: localLongTimeFormat", | ||
"type": "string" | ||
} | ||
}, | ||
"value": "%Y-%m-%d %H:%M" | ||
}, | ||
{ | ||
"name": "Products.CMFPlone.i18nl10n.override_dateformat.date_format_short", | ||
"schema": { | ||
"properties": { | ||
"description": "Default value: %Y-%m-%d (2038-01-19)", | ||
"factory": "Text line (String)", | ||
"title": "old ZMI property: localTimeFormat", | ||
"type": "string" | ||
} | ||
}, | ||
"value": "%Y-%m-%d" | ||
}, | ||
{ | ||
"name": "Products.CMFPlone.i18nl10n.override_dateformat.time_format", | ||
"schema": { | ||
"properties": { | ||
"description": "Default value: %H:%M (03:14)", | ||
"factory": "Text line (String)", | ||
"title": "old ZMI property: localTimeOnlyFormat", | ||
"type": "string" | ||
} | ||
}, | ||
"value": "%H:%M" | ||
} | ||
], | ||
"items_total": 4 | ||
} |
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