Add param option to exclude basic metadata from GET content#1660
Add param option to exclude basic metadata from GET content#1660
Conversation
|
@razvanMiu thanks for creating this Pull Request and helping to improve Plone! TL;DR: Finish pushing changes, pass all other checks, then paste a comment: To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically. Happy hacking! |
✅ Deploy Preview for plone-restapi canceled.
|
stevepiercy
left a comment
There was a problem hiding this comment.
Minor punctuation fixes.
docs/source/usage/content.md
Outdated
| To disable the inclusion, add the `GET` parameter `include_items=false` to the URL. | ||
|
|
||
| By default, only basic metadata is included. | ||
| To exclude basic metadata add the `GET` parameter `include_basic_metadata=false` to the URL. |
There was a problem hiding this comment.
| To exclude basic metadata add the `GET` parameter `include_basic_metadata=false` to the URL. | |
| To exclude basic metadata, add the `GET` parameter `include_basic_metadata=false` to the URL. |
docs/source/usage/content.md
Outdated
|
|
||
| By default, only basic metadata is included. | ||
| To exclude basic metadata add the `GET` parameter `include_basic_metadata=false` to the URL. | ||
| To exclude expandable elements add the `GET` parameter `include_expandable_elements=false` to the URL |
There was a problem hiding this comment.
| To exclude expandable elements add the `GET` parameter `include_expandable_elements=false` to the URL | |
| To exclude expandable elements, add the `GET` parameter `include_expandable_elements=false` to the URL. |
stevepiercy
left a comment
There was a problem hiding this comment.
I approve docs only. Code should be reviewed by maintainer. Thank you!
| @@ -0,0 +1 @@ | |||
| - Add param option to exclude basic metadata from GET content - @razvanMiu No newline at end of file | |||
There was a problem hiding this comment.
@razvanMiu can you elaborate on your use case to exclude basic metadata from the request? Performance? Security?
This PR will add two more optional parameters to GET content:
include_basic_metadata- by default this isTrue; IfFalseall metadatas except@id,@typeandis_folderishwill be excluded fromresultallowingmetadata_fieldsparameter to specify the desired metadatasinclude_expandable_elements- by default this isTrue; IfFalsethe expandable elements will not be included in theresultRef #1661