-
Type:
Bug
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 11.0.0, 12.0.0
-
Fix Version/s: 12.0.0
-
Component/s: documentation
-
Rank:1|hzo6wv:
-
Sprint:Sprint 45
Missing , and " in the creating identity command in the developer guide.
http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index.html#rest-api-create-identity
http://docs.forgerock.org/en/openam/11.0.0/dev-guide/index.html#rest-api-create-identity
(2nd. command)
In the documentation is:
$ curl --request PUT --header "iplanetDirectoryPro: AQIC5w...2NzEz*" --header "Content-Type: application/json" --header "If-None-Match: *" --data '{ "username": "janedoe" userpassword": "secret12", "mail": "janedoe@example.com" }' https://openam.example.com:8443/openam/json/users/janedoe {
If I use this command I got:
{"code":400,"reason":"Bad Request","message":"The request could not be processed because the provided content is not valid JSON","detail":"Unexpected character ('u' (code 117)): was expecting comma to separate OBJECT entries\n at [Source: org.apache.catalina.connector.CoyoteInputStream@41a8029; line: 1, column: 26]"}
Should be:
$ curl --request PUT --header "iplanetDirectoryPro: AQIC5w...2NzEz*" --header "Content-Type: application/json" --header "If-None-Match: *" --data '{ "username": "janedoe", "userpassword": "secret12", "mail": "janedoe@example.com" }' https://openam.example.com:8443/openam/json/users/janedoe {
Change:
"janedoe" userpassword"
to
"janedoe", "userpassword"