Hi Guys,
Doc [1] states that the /rest (json mode) interface will be removed
after 1.2.0. Does this mean we will be
stuck with only the very human unreadble xml output form, or will there
be an additional option, after the change
to allow the output, in the more human readable json form, examples as
described in [2], in addition to pleasing
xml lovers?
rgds,
Nik
[nik@anvil conf]$ curl -u admin:password -H "Content-Type:
application/xml" -X GET http://10.0.0.183:9090/syncope/cxf/configurations
<?xml version="1.0" encoding="UTF-8"?><configurations>
<configuration>
<key>createRequest.allowed</key>
<value>true</value>
</configuration>
<configuration>
<key>notificationjob.cronExpression</key>
<value></value>
</configuration>
<configuration>
<key>password.cipher.algorithm</key>
<value>SHA1</value>
</configuration>
<configuration>
<key>smtp.host</key>
<value>not-existing</value>
</configuration>
<configuration>
<key>smtp.port</key>
<value>25</value>
</configuration>
<configuration>
<key>token.expireTime</key>
<value>60</value>
</configuration>
<configuration>
<key>token.length</key>
<value>256</value>
</configuration>
</configurations>
[nik@anvil conf]$ curl -u admin:password -H "Content-Type:
application/json" -X GET
http://10.0.0.183:9090/syncope/rest/configuration/list | python -mjson.tool
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left Speed
100 304 0 304 0 0 19536 0 --:--:-- --:--:-- --:--:--
21714
[
{
"key": "createRequest.allowed",
"value": "true"
},
{
"key": "notificationjob.cronExpression",
"value": ""
},
{
"key": "password.cipher.algorithm",
"value": "SHA1"
},
{
"key": "smtp.host",
"value": "not-existing"
},
{
"key": "smtp.port",
"value": "25"
},
{
"key": "token.expireTime",
"value": "60"
},
{
"key": "token.length",
"value": "256"
}
]
[nik@anvil conf]$
[1] https://cwiki.apache.org/confluence/display/SYNCOPE/REST+API+upgrade
[2]
https://cwiki.apache.org/confluence/display/SYNCOPE/Calling+RESTful+services+from+CLI