Hi all,
I'm trying to create a schemas attribute via REST in syncope 1.2.7.
In order to create an attribute named 'TEST', I'm using the following REST
method over HTTP POST:
'/schemas/USER/NORMAL'
with this payload:
{
"id":0,
"name": "TEST",
"type": "String",
"mandatoryCondition": "false",
"multivalue": "false",
"uniqueConstraint": "false",
"readonly": "false",
"conversionPattern": "null",
"validatorClass": "null",
"enumerationValues": "",
"enumerationKeys": "",
"secretKey": "null",
"cipherAlgorithm": "null",
"mimeType": "null"
}
but something goes wrong and I receive this response:
'Unexpected token (END_OBJECT), expected FIELD_NAME: missing property
'@class' that is to contain type id (for class
org.apache.syncope.common.to.AbstractSchemaTO)
at [Source: org.apache.cxf.transport.http.AbstractHTTPDestination$1@119d554;
line: 1, column: 15]'
any suggestion?
Kind regards,
Antonio