Table of Contents |
---|
Overview
This page contains screen scribbles for the Editor GUI implemented in wcm.io for the Sling Context-Aware Configuration.
...
No Format |
---|
=== Configuration Editor: <Config Name> ==== [ Save ] [ Cancel ] Context Path: /x/y/z --- Configuration: item1 --- | Property | Value | Description | Inherited | Overwritten | Param 1 | 123 | (i) | [x] | [ ] | Param 2 | abc | (i) | [ ] | [ ] [ Delete ] --- Configuration: item2 --- | Property | Value | Description | Inherited | Overwritten | Param 1 | 123 | (i) | [x] | [ ] [ Delete ] [ Add ] |
Configuration Editor HTTP API
Configuration Names
URL: <resource-path>.configNames.json
Read Configuration Data
URL: <resource-path>.configData.json?configName=<configName>[&collection=true]
Persist Configuration Data
URL: <resource-path>.configPersist.json?configName=<configName>[&collection=true]
Use POST method.
Post singleton configuration with a JSON body like this:
Code Block | ||||
---|---|---|---|---|
| ||||
[{"properties": {
"prop1": "value1",
"prop2": 55,
"prop3": true,
"prop4": ["value1","value2"]
}}] |
Post configuration collections with a JSON body like this:
Code Block | ||||
---|---|---|---|---|
| ||||
[{"collectionItemName": item1, "properties": {
"prop1": "value1",
"prop2": 55,
"prop3": true,
"prop4": ["value1","value2"]
}},
{"collectionItemName": item2, "properties": {
"prop1": "value2"
}}] |
No nested configurations are allowed when posting. Post them individually.