-
Task
-
Resolution: Done
-
Neutral
-
None
-
None
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Yes
See acceptant criteria in ticket https://jira.magnolia-cms.com/browse/MGNLREST-224.
for more detail
Example config for properties:
- See example config for properties in : https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-integration-tests/magnolia-rest-test-webapp/src/main/webapp/modules/rest-content-delivery/restEndpoints/delivery/v2/referenceToParentWithProperties_v1.yaml?at=refs%2Fheads%2Frelease%2F2.2#6
- See example config for properties in reference resolver: https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-integration-tests/magnolia-rest-test-webapp/src/main/webapp/modules/rest-content-delivery/restEndpoints/delivery/v2/referenceToParentWithProperties_v1.yaml?at=refs%2Fheads%2Frelease%2F2.2#23
- Query in url. http://localhost:8496/magnoliaTest/.rest/delivery/v2/referenceToParentWithProperties/v1/?q=about&properties=views
- Note: If both properties in query and in top level of definition. Only return the same properties config in both.
Example config for properties:
- See example config for exclude: https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-integration-tests/magnolia-rest-test-webapp/src/main/webapp/modules/rest-content-delivery/restEndpoints/delivery/v2/referenceToParentWithExcludeProperties_v1.yaml?at=release%2F2.2#6
- See example config for exclude in reference resolver: https://git.magnolia-cms.com/projects/MODULES/repos/rest/browse/magnolia-rest-integration-tests/magnolia-rest-test-webapp/src/main/webapp/modules/rest-content-delivery/restEndpoints/delivery/v2/referenceToParentWithExcludeProperties_v1.yaml?at=release%2F2.2#22
- Query in url: http://localhost:8496/magnoliaTest/.rest/delivery/v2/referenceToParentWithExcludeProperties/v1/?q=about&excludeProperties=relatedPage
- Note: If both excludeProperties in query and in top level. Will exclude combining excludeProperties config in both definition and in query string
Acceptance criteria
- documents
-
MGNLREST-224 Specify fields to return
- Closed