[midPoint] REST API -- gettng started
David Westbrook
david.westbrook at catapultlearning.com
Sun Feb 25 17:36:02 CET 2018
I'm having trouble getting started with the REST API (midpoint v3.7) ... Following the examples in the docs:
https://wiki.evolveum.com/display/midPoint/REST+API
I'm either getting nothing (e.g. "Find owner of shadow" example) or 403 Forbidden (e.g. "Create or Update Object").
I'm using the default administrator account/password, which is a superuser role.
What configuration/access settings should I check? Nothing appears in var/log/midpoint.log for either of these attempts.
curl --user administrator:5ecr3t -X GET http://localhost:8080/midpoint/ws/rest/shadows/8e605d0e-a8a4-48ef-a3ce-1941df449bc4/owner # (that's one of our account UID's)
curl -q \
--user administrator:5ecr3t \
-H "Content-Type: application/xml" \
http://localhost:8080/midpoint/ws/rest/orgs \
--data @org1.xml
<org oid="c74a7d86-7798-11e2-964e-100000000101">
<name>F0100</name>
<description>Fine arts and stuff</description>
<parentOrgRef oid="c74a7d86-7798-11e2-964e-100000000100" type="c:OrgType"/>
<displayName>Department of Arts</displayName>
<identifier>0100</identifier>
<orgType>functional</orgType>
<costCenter>CC100</costCenter>
<locality>Florence</locality>
</org>
Thanks!
--david
David Westbrook
Sr Application Developer
Catapult Learning, LLC
(803)-262-4010
david.westbrook at catapultlearning.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180225/12067286/attachment.htm>
More information about the midPoint
mailing list