Invoking RESTful Web Service using API in java.net and GSON