[midPoint] REST examples
Florin. Stingaciu
fstingaciu at mirantis.com
Thu Oct 27 21:04:26 CEST 2016
Hey,
If you look at the Location Header in the Response following the creation
of any object, you'll find the OID you just created. Using the -D switch on
curl should dump the response headers in stdout.
-F
On Thu, Oct 27, 2016 at 4:44 AM, Pertti Kellomäki <
pertti.kellomaki at datactica.fi> wrote:
> Ok, got that figured out by myself. I was just confused by the relatively
> complex xml files in the samples directory. Simply post something like
>
> <user><name>newuser</name><fullName>New User</fullName><givenName>New<
> /givenName><familyName>User</familyName></user>
>
> My next question is, can I get the oid of the newly created object back
> somehow? The POST does not seem to return anything. Do I search with the
> name of the new object or something else?
>
> Thanks, Pertti
> ________________________________________
> Lähettäjä: midPoint <midpoint-bounces at lists.evolveum.com> käyttäjän
> puolestaPertti Kellomäki <pertti.kellomaki at datactica.fi>
> Lähetetty: 27. lokakuuta 2016 13:38
> Vastaanottaja: midPoint General Discussion
> Aihe: [midPoint] REST examples
>
> Hi,
>
> I am trying to use the REST interface, and I am able to run the examples
> given in the midPoint wiki. However, I'm having a hard time formulating
> queries myself. Can someone share for example the xml needed to create a
> new user via the REST api? Pointers to more examples or documentation
> would also be much appreciated.
>
> Pertti
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161027/4855c3f4/attachment.htm>
More information about the midPoint
mailing list