-
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.
Merge branch 'docs/cleanup-4.8' into support-4.8
- Loading branch information
Showing
22 changed files
with
341 additions
and
21 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
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
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
51 changes: 51 additions & 0 deletions
51
docs/interfaces/rest/operations/examples/raw/generate-value-rpc.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,51 @@ | ||
:page-visibility: hidden | ||
|
||
.*Generate Value on Input Procedure Call* | ||
[source,bash] | ||
---- | ||
curl --user administrator:y0uR_P455woR*d \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type: application/json" \ | ||
-X POST http://localhost:8080/midpoint/ws/rest/rpc/generate \ | ||
-v \ | ||
--data-binary @./samples/rest/policy-items-password-rpc-generate.json | ||
---- | ||
|
||
.*Show* data source example for *"Generate value on input procedure call"* | link:https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/policy-items-password-rpc-generate.json[GitHub] | ||
[%collapsible] | ||
==== | ||
By using an empty policyItemDefinition, the default value policy is used. | ||
|
||
[source, json] | ||
---- | ||
{ | ||
"policyItemsDefinition": { | ||
"policyItemDefinition": { | ||
} | ||
} | ||
} | ||
---- | ||
==== | ||
The response is an HTTP 200 code in case of success *with* a response body. | ||
.Example Output of *"Generate value on input procedure call"* example | ||
[%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" : [ { | ||
"value" : { | ||
"@type" : "xsd:string", | ||
"@value" : "3ju6We:q,DL" | ||
} | ||
} ] | ||
} | ||
} | ||
---- | ||
==== |
6 changes: 3 additions & 3 deletions
6
...examples/raw/search-case-open-review.adoc → ...amples/raw/search-case-open-approval.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
81 changes: 81 additions & 0 deletions
81
...es/rest/operations/examples/raw/search-requestable-from-role-catalog-cases.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,81 @@ | ||
:page-visibility: hidden | ||
.*Search for All Requestable Objects which are a Part of the Role Catalog'* | ||
[source,bash] | ||
---- | ||
curl --user Jack:y0uR_P455woR*d \ | ||
-H "Accept: application/json" \ | ||
-H "Content-Type: application/json" \ | ||
-X POST http://localhost:8080/midpoint/ws/rest/roles/search \ | ||
-v \ | ||
--data-binary @./samples/rest/query-all-request-targets.json | ||
---- | ||
|
||
.*Show* data source example for *"Search for All Requestable Objects which are a Part of the Role Catalog"* | link:https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/query-all-request-targets.json[GitHub] | ||
[%collapsible] | ||
==== | ||
[source, json] | ||
---- | ||
{ | ||
"query": { | ||
"filter": { | ||
"text": "requestable = true AND parentOrgRef/@/name = \"Role Catalog\"" | ||
} | ||
} | ||
} | ||
---- | ||
==== | ||
The response is an HTTP 200 code in case of success with a response body containing the queried items. | ||
.Example Output is a list of objects. | ||
[%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#ObjectListType", | ||
"object" : [ { | ||
"@type" : "c:RoleType", | ||
"oid" : "96262f4f-053a-4b0b-8901-b3ec01e3509c", | ||
"version" : "5", | ||
"name" : "employee", | ||
"parentOrgRef" : { | ||
"oid" : "7878cf5d-9de2-486c-aeb7-41b438200a57", | ||
"relation" : "org:default", | ||
"type" : "c:OrgType", | ||
"targetName" : "Role Catalog" | ||
}, | ||
"metadata" : {}, | ||
"operationExecution" : [], | ||
"assignment" : { | ||
"@id" : 3, | ||
"metadata" : {}, | ||
"targetRef" : { | ||
"oid" : "7878cf5d-9de2-486c-aeb7-41b438200a57", | ||
"relation" : "org:default", | ||
"type" : "c:OrgType", | ||
"targetName" : "Role Catalog" | ||
}, | ||
"activation" : { | ||
"effectiveStatus" : "enabled" | ||
} | ||
}, | ||
"iteration" : 0, | ||
"iterationToken" : "", | ||
"roleMembershipRef" : { | ||
"@metadata" : {}, | ||
"oid" : "7878cf5d-9de2-486c-aeb7-41b438200a57", | ||
"relation" : "org:default", | ||
"type" : "c:OrgType", | ||
"targetName" : "Role Catalog" | ||
}, | ||
"activation" : {}, | ||
"displayName" : "Basic Employee", | ||
"requestable" : true | ||
} ] | ||
} | ||
} | ||
---- | ||
==== |
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
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
Oops, something went wrong.