[ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
Any experts view on this ? On Tue, 23 Jul 2019 at 18:08, Rahul Kumar wrote: > There is URI module present in Ansible which lets you invoke REST End > Points and it works preety well. > Currently i have lot of JSON Objects and corresponding REST end points > ofcourse for each. > Is it a good prac

[ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Abhijeet Kasurde
On Tuesday, July 23, 2019 at 6:09:06 PM UTC+5:30, Rahul Kumar wrote: > > There is URI module present in Ansible which lets you invoke REST End > Points and it works preety well. > Currently i have lot of JSON Objects and corresponding REST end points > ofcourse for each. > Is it a good practice

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-09-04 Thread Rahul Kumar
I think purpose of httpapi plugin is different. Here I have my own API (say built in JAX-RS or Spring Boot), and list of REST ends points are of order (10-100) where each Resource have multiple parameters to deal with. In that context , is it good to make each param configurable using ansible? On

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Andrew Feller
You really should consider developing a plugin for this rather than twisting YAML to make it happen. Check out https://docs.ansible.com/ansible/latest/dev_guide/developing_plugins.html for writing this in Python in a way that’s callable from Ansible Sent from my iPhone > On Jul 30, 2019, at 5

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
Thanks Andrew , but is it good to make each and every parameter of Rest api response as configurable using Ansible , considering we have huge parameters? On Tue, 30 Jul 2019 at 3:19 PM, Andrew Feller wrote: > You really should consider developing a plugin for this rather than > twisting YAML to

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Mark Anthony Garcia
It is best to use jinja template to create the bosy file and call it for scalability. This is what I do using data from mssql query. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails f

Re: [ansible-project] Re: Need Help for REST API integration with Ansible

2019-07-30 Thread Rahul Kumar
Thanks abhijeet . - https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/httpapi - What this plugin does , any usage , as i dont see any readme file also? or i need to look at its code? Regards Rahul On Tue, 30 Jul 2019 at 15:42, Abhijeet Kasurde wrote: > > > On Tuesday, July 23