-
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.
REST docu, report data examples and example pages
- Loading branch information
1 parent
b5d87b8
commit be6d125
Showing
3 changed files
with
78 additions
and
2 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
65 changes: 65 additions & 0 deletions
65
...interfaces/rest/operations/examples/raw/search-report-data-from-report-def.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,65 @@ | ||
:page-visibility: hidden | ||
|
||
.*Search Report Data based on Report Reference* | ||
[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/reportData/search \ | ||
-v \ | ||
--data-binary @./samples/rest/query-report-data.json | ||
---- | ||
|
||
.*Show* data source example for *"Search Report Data based on Report Reference"* | link:https://raw.githubusercontent.com/Evolveum/midpoint-samples/master/samples/rest/query-report-data.json[GitHub] | ||
[%collapsible] | ||
==== | ||
[source, json] | ||
---- | ||
{ | ||
"query": { | ||
"filter": { | ||
"text": "reportRef/@/name =\"All error audit records in 24h\"" | ||
} | ||
} | ||
} | ||
---- | ||
==== | ||
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:ReportDataType", | ||
"oid" : "1a1f8226-6b2d-4253-8714-f0a8e61179fb", | ||
"version" : "1", | ||
"name" : "All error audit records in 24h-EXPORT 08-03-2024 08-18-46.230 - CSV", | ||
"description" : "Report made from all audit records. - CSV", | ||
"metadata" : {}, | ||
"operationExecution" : {}, | ||
"iteration" : 0, | ||
"iterationToken" : "", | ||
"filePath" : "./foo/baar/All_error_audit_records_in_24h-EXPORT_08-03-2024_08-18-46.228.csv", | ||
"reportRef" : { | ||
"oid" : "579b3765-a2d3-46bc-98e5-3a2414d0accd", | ||
"relation" : "org:default", | ||
"type" : "c:ReportType" | ||
}, | ||
"nodeRef" : { | ||
"oid" : "3f383096-0da2-42f5-97d5-cdc2da0f61db", | ||
"relation" : "org:default", | ||
"type" : "c:NodeType" | ||
} | ||
} ] | ||
} | ||
} | ||
---- | ||
==== |