Integrating ManageIQ REST API with java

I am new to ManageIQ REST API.
I am creating a self service portal where I will be integrating Vmware,Rhev and hyper v through manage IQ.
For that I wanted to know -

  1. How will I connect ManageIQ REST API using java
  2. How to provision a vm using REST API through java

Also provide some documentation for automating tasks on vm using REST api in java