[
https://issues.apache.org/jira/browse/SYNCOPE-1939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18045188#comment-18045188
]
Francesco Chicchiriccò commented on SYNCOPE-1939:
-------------------------------------------------
At the end of the REST calls as above, you should find the {{PERSON}} tab under
{{Realms}}, not {{Domains}}.
I would suggest you to [subscribe the user@ mailing
list|https://syncope.apache.org/mailing-lists] to discuss before moving ahead
and opening issues here.
> API call POST rest/anyTypes creates object but don't update console GUI
> -----------------------------------------------------------------------
>
> Key: SYNCOPE-1939
> URL: https://issues.apache.org/jira/browse/SYNCOPE-1939
> Project: Syncope
> Issue Type: Bug
> Components: console, core
> Affects Versions: 4.0.3
> Reporter: Stéphane POPOFF
> Priority: Major
>
> Starting with a clean instance, I create a schema and a class using the API,
> and finally an object. All calls are valid, but in the end, I can't find the
> PERSON tab in the Domains view.
> The object exists in the configuration but isn't loaded into the view.
> The curl requests:
> {code:java}
> curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
> "key": "personId",
> "anyTypeClass": "personne",
> "type": "String",
> "mandatoryCondition": "true",
> "uniqueConstraint": "true"
> }'
> curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
> "key": "nom",
> "anyTypeClass": "personne",
> "type": "String"
> }'
> curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
> "key": "prenom",
> "anyTypeClass": "personne",
> "type": "String"
> }'curl --location 'http://<CoreServer>/syncope/rest/schemas/PLAIN' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "_class": "org.apache.syncope.common.lib.to.PlainSchemaTO",
> "key": "operationalUnit",
> "anyTypeClass": "personne",
> "type": "String"
> }'
> curl --location 'http://<CoreServer>/syncope/rest/anyTypeClasses' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "key": "personne",
> "plainSchemas": [
> "personId",
> "nom",
> "prenom",
> "operationalUnit"
> ],
> "derSchemas": [],
> }'curl --location 'http://<CoreServer>/syncope/rest/anyTypes' \
> --header 'Accept: application/json' \
> --header 'Content-Type: application/json' \
> --header 'Authorization: ••••••' \
> --data '{
> "key": "PERSON",
> "kind": "ANY_OBJECT",
> "classes": [
> "personne"
> ]
> }'{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)