-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWD reset docu changes, added example use case for REST PWD reset wit…
…h link to future example config
- Loading branch information
1 parent
80ad1ea
commit 5100021
Showing
5 changed files
with
159 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 22 additions & 4 deletions
26
docs/interfaces/rest/operations/examples/raw/create-user-jack.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
.Create a new User object in MidPoint with file data source | ||
[source,bash] | ||
---- | ||
curl --user administrator:5ecr3t -H "Content-Type: application/xml" -X POST http://localhost:8080/midpoint/ws/rest/users --data-binary @pathToMidpointGit\samples\rest\user-jack.xml -v | ||
# Authenticating with the credentials "administrator" and password "5ecr3t" on a localhost instance running on port 8080 | ||
curl --user administrator:5ecr3t -H "Content-Type: application/json" -X POST http://localhost:8080/midpoint/ws/rest/users --data-binary @pathToMidpointGit\samples\rest\user-jack.json -v | ||
---- | ||
|
||
.*Show* data source example for *"Create a new User object in MidPoint"* | ||
.*Show* data source example for *"Create a new User object in MidPoint"* | link:https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/user-jack.json[GitHub] | ||
[%collapsible] | ||
==== | ||
[source, xml] | ||
[source, json] | ||
---- | ||
include::https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/user-jack.xml[] | ||
{ | ||
"user": { | ||
"name": "jack", | ||
"fullName": "Jack Sparrow", | ||
"givenName": "Jack", | ||
"familyName": "Sparrow" | ||
} | ||
} | ||
---- | ||
==== | ||
The response is an HTTP 201 code in case of success *without* a response body. | ||
Also, the response contains a *Location Header* pointing to the location of the created | ||
user. | ||
.Example location header | ||
[source, bash] | ||
---- | ||
# Location: http://localhost:8080/midpoint/ws/rest/users/e4b0c81e-7fc7-462d-a92c-b3e0b10b8b49 | ||
---- |
4 changes: 4 additions & 0 deletions
4
docs/interfaces/rest/operations/examples/raw/get-user-administrator.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
[source,bash] | ||
---- | ||
# Authenticating with the credentials "administrator" and password "5ecr3t" on a localhost instance running on port 8080 | ||
curl --user administrator:5ecr3t -H "Accept: application/json" -X GET http://localhost:8080/midpoint/ws/rest/users/00000000-0000-0000-0000-000000000002?options=raw | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters