Sample for create new domain
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/c23f4a69 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/c23f4a69 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/c23f4a69 Branch: refs/heads/master Commit: c23f4a6985ef8e6ad58631940d75fff324f931db Parents: 5adb643 Author: Francesco Chicchiriccò <ilgro...@apache.org> Authored: Wed Apr 26 11:44:35 2017 +0200 Committer: Francesco Chicchiriccò <ilgro...@apache.org> Committed: Wed Apr 26 11:44:48 2017 +0200 ---------------------------------------------------------------------- .../systemadministration/domainsmanagement.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/c23f4a69/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc ---------------------------------------------------------------------- diff --git a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc index 612ed30..913263e 100644 --- a/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc +++ b/src/main/asciidoc/reference-guide/workingwithapachesyncope/systemadministration/domainsmanagement.adoc @@ -33,3 +33,19 @@ Adding a new domain requires re-deploying the <<core>> application and restartin Once a new domain is added, the admin credentials for such domain can be set via the admin console, CLI or barely invoking the REST layer through http://curl.haxx.se/[curl^]. + +[[sample-domain-create]] +.Create new domain and set admin credentials +==== +The JSON payload below, when sent via `POST` to the `/domains` endpoint, will create a new `newDomain` domain, and set +the admin password to `newPassword`, to be stored via `SHA` cipher. + +[source,json] +---- +{ + "key": "newDomain", + "adminPwd": "newPassword", + "adminCipherAlgorithm": "SHA" +} +---- +====