-
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.
- Loading branch information
Showing
9 changed files
with
107 additions
and
13 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
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
9 changes: 9 additions & 0 deletions
9
docs/interfaces/rest/operations/examples/raw/delete-role.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
:page-visibility: hidden | ||
.Delete a User type object | ||
[source,bash] | ||
---- | ||
# Authenticating with the credentials "administrator" and password "y0uR_P455woR*d" on a localhost instance running on port 8080 | ||
curl --user administrator:y0uR_P455woR*d -X DELETE http://localhost:8080/midpoint/ws/rest/roles/76fcec3e-7224-435e-8c9b-7532f081d8b0 -v | ||
---- | ||
|
||
The response is an HTTP 204 code in case of success *without* a response body. |
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
6 changes: 6 additions & 0 deletions
6
docs/interfaces/rest/operations/examples/raw/modify-attr-role-employee.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
:page-visibility: hidden | ||
[source,bash] | ||
---- | ||
# Authenticating with the credentials "administrator" and password "y0uR_P455woR*d" on a localhost instance running on port 8080 | ||
curl --user administrator:y0uR_P455woR*d -H "Content-Type: application/json" -X PATCH http://localhost:8080/midpoint/ws/rest/roles/76fcec3e-7224-435e-8c9b-7532f081d8b0 --data-binary @pathToMidpointGit\samples\rest\modify-attribute-gen.json | ||
---- |
44 changes: 44 additions & 0 deletions
44
docs/interfaces/rest/operations/examples/raw/modify-id-generate.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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
:page-visibility: hidden | ||
|
||
.*Show* data source example for *"Generate identifier for object"* | link:https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/policy-items-identifier-generate.json[GitHub] | ||
[%collapsible] | ||
==== | ||
[source, json] | ||
---- | ||
{ | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": { | ||
"target": { | ||
"path": "identifier" | ||
}, | ||
"execute": "true" | ||
} | ||
} | ||
} | ||
---- | ||
==== | ||
The response is an HTTP 200 code in case of success with a response body. | ||
.*Show* example output for *"Generate identifier for object"* | ||
[%collapsible] | ||
==== | ||
[source, json] | ||
---- | ||
{ | ||
"@ns" : "http://prism.evolveum.com/xml/ns/public/types-3", | ||
"object" : { | ||
"@type" : "http://midpoint.evolveum.com/xml/ns/public/common/api-types-3#PolicyItemsDefinitionType", | ||
"policyItemDefinition" : [ { | ||
"target" : { | ||
"path" : "identifier" | ||
}, | ||
"value" : { | ||
"@type" : "xsd:string", | ||
"@value" : "s2cMJrD5^21" | ||
}, | ||
"execute" : true | ||
} ] | ||
} | ||
} | ||
---- | ||
==== |
7 changes: 7 additions & 0 deletions
7
docs/interfaces/rest/operations/examples/raw/role-id-generate.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
:page-visibility: hidden | ||
.Generate identifier for Role type object | ||
[source,bash] | ||
---- | ||
# Authenticating with the credentials "administrator" and password "y0uR_P455woR*d" on a localhost instance running on port 8080 | ||
curl --user administrator:y0uR_P455woR*d -H "Accept: application/json" -H "Content-Type: application/json" -X POST http://localhost:8080/midpoint/ws/rest/roles/ae660563-11e6-41e1-8920-82725cc77021/generate --data-binary @pathToMidpointGit\samples\rest\policy-items-identifier-generate.json -v | ||
---- |
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