On úterý 18. července 2017 12:15:37 CEST Fairouz el ouazi wrote:
> HI,
>    PLease howa can make  GET or Post request on my new plugin ?
> 
> Le mercredi 12 juillet 2017 17:21:49 UTC+2, Fairouz el ouazi a écrit :
> > Hi ,
> > 
> >         I want to know if foreman plugin (ansible or chef )   communicate
> > 
> > with the configuration management server or platform (chef or ansible )
> > using theirs rest Api  ?
> > 
> > Thanks

You can use any Ruby library but I would recommend using Rest client as it's 
used elsewhere already. See rest-client documentation [1] for more details. 
Alternatively you can use Net::HTTP library which is built-in Ruby stdlib [2].

However this is not Foreman related so I suggest you consult generic Ruby 
related queries at Ruby support channels.

[1] https://github.com/rest-client/rest-client
[2] http://ruby-doc.org/stdlib-2.4.1/libdoc/net/http/rdoc/Net/HTTP.html

Hope this helps

--
Marek

-- 
You received this message because you are subscribed to the Google Groups 
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to foreman-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to