commit | 162c2b08b0a900edaea057ee855b25b37dded16a | [log] [tgz] |
---|---|---|
author | Konrad Windszus <kwin@apache.org> | Thu Dec 02 17:24:48 2021 +0100 |
committer | Konrad Windszus <kwin@apache.org> | Thu Dec 02 17:24:48 2021 +0100 |
tree | cbad6c7a703472d0b1565a3f32e8ff21625ab5f2 | |
parent | 07a758191463eff9171ad2e3d4b7228a57ef6499 [diff] |
Update to parent 46 Use javax.json for JSON writing
This module is part of the Apache Sling project.
Start a Sling Starter (or some other distribution)
Install the org.apache.sling.validation.api
and org.apache.sling.validation.core
bundles
Build and install the org.apache.sling.validation.examples
bundle
mvn clean package sling:install
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=John204 -FlastName=Smith http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has not been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.
curl -u admin:admin -Fsling:resourceType=/apps/validationdemo/components/user -Fusername=johnsmith -FfirstName=Johnny -FlastName=Bravo http://127.0.0.1:8080/content/validationdemo/users/johnsmith.modify.html
Check that the resource has been modified at http://127.0.0.1:8080/content/validationdemo/users/johnsmith.html.