The easiest way to find this out is to use the web console and look at
the post request it sends :)

Afaik, the url should have the PID as a suffix. If you send add
create=true, the configuration will be created. Afaik, you can't set
properties, just create.
For modificiation send apply=true then propertyList with a comma
separate list of properties you want to apply and then for each property
the parameter with the value. For example if you want to change/set a
and b then it is:
?apply=true&propertyList=a,b&a=5&b=10

It's ugly and has some historic reasons; would be great if a spec for a
REST api for configurations existed....

Carsten

David Bosschaert wrote
> Hi all,
> 
>>From the documentation at I think that the webconsole supports POST
> requests to create/modify configurations, but the documentation is a little
> cryptic. Does anyone have any examples of how this can be used, e.g. from
> curl?
> 
> Thanks,
> 
> David
> 
> [1]
> http://felix.apache.org/documentation/subprojects/apache-felix-web-console/web-console-restful-api.html#post-requests_1
> 


 

-- 
Carsten Ziegeler
Adobe Research Switzerland
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to