gt:     Map<String, Object> formParams = new HashMap<String, Object>();
context: package io.swagger.client.api;
  
  import io.swagger.client.ApiException;
  import io.swagger.client.ApiClient;
  import io.swagger.client.Configuration;
  import io.swagger.client.Pair;
  import io.swagger.client.TypeRef;
  
  import io.swagger.client.model.InlineResponse20025;
  import io.swagger.client.model.InlineResponse20026;
  import io.swagger.client.model.VariableUserSource;
  import io.swagger.client.model.InlineResponse2002;
  
  import java.util.*;
  
  @javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-11-05T03:15:54.261Z")
  public class VariableUserSourceApi {
    private ApiClient apiClient;
  
    public VariableUserSourceApi() {
      this(Configuration.getDefaultApiClient());
    }
  
    public VariableUserSourceApi(ApiClient apiClient) {
      this.apiClient = apiClient;
    }
  
    public ApiClient getApiClient() {
      return apiClient;
    }
  
    public void setApiClient(ApiClient apiClient) {
      this.apiClient = apiClient;
    }
  
    
    /**
     * Get all VariableUserSources
     * Get all VariableUserSources
     * @param variableId variable_id
     * @param userId user_id
     * @param timestamp timestamp
     * @param createdAt created_at
     * @param updatedAt updated_at
     * @param limit limit
     * @param offset offset
     * @param sort sort
     * @return InlineResponse20025
     */
    public InlineResponse20025 variableUserSourcesGet (Integer variableId, Integer userId, Integer timestamp, String createdAt, String updatedAt, Integer limit, Integer offset, String sort) throws ApiException {
      Object postBody = null;
      byte[] postBinaryBody = null;
      
      // create path and map variables
      String path = "/variableUserSources".replaceAll("\\{format\\}","json");
  
      // query params
      List<Pair> queryParams = new ArrayList<Pair>();
      Map<String, String> headerParams = new HashMap<String, String>();
      Map<String, Object> formParams = new HashMap<String, Object>();
  
      
      queryParams.addAll(apiClient.parameterToPairs("", "variable_id", variableId));
      
      queryParams.addAll(apiClient.parameterToPairs("", "user_id", userId));
      
      queryParams.addAll(apiClient.parameterToPairs("", "timestamp", timestamp));
      
      queryParams.addAll(apiClient.parameterToPairs("", "created_at", createdAt));
      
      queryParams.addAll(apiClient.parameterToPairs("", "updated_at", updatedAt));
      
      queryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
      
      queryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
      
      queryParams.addAll(apiClient.parameterToPairs("", "sort", sort));
      
  
      
  
      
  
      final String[] accepts = {
        "application/json"
      };
      final String accept = apiClient.selectHeaderAccept(accepts);
  
      final String[] contentTypes = {
        "application/json"
      };
      final String contentType = apiClient.selectHeaderContentType(contentTypes);
  
      String[] authNames = new String[] {  };
  
      
  
      
      
      TypeRef returnType = new TypeRef<InlineResponse20025>() {};
      return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
      
      
  
  
    }
    
    /**
     * Store VariableUserSource
     * Store VariableUserSource
     * @param body VariableUserSource that should be stored
     * @return InlineResponse20026
     */
    public InlineResponse20026 variableUserSourcesPost (VariableUserSource body) throws ApiException {
      Object postBody = body;
      byte[] postBinaryBody = null;
      
      // create path and map variables
      String path = "/variableUserSources".replaceAll("\\{format\\}","json");
  
      // query params
      List<Pair> queryParams = new ArrayList<Pair>();
      Map<String, String> headerParams = new HashMap<String, String>();
      Map<String, Object> formParams = new HashMap<String, Object>();
  
      
  
      
  
      
  
      final String[] accepts = {
        "application/json"
      };
      final String accept = apiClient.selectHeaderAccept(accepts);
  
      final String[] contentTypes = {
        "application/json"
      };
      final String contentType = apiClient.selectHeaderContentType(contentTypes);
  
      String[] authNames = new String[] {  };
  
      
  
      
      
      TypeRef returnType = new TypeRef<InlineResponse20026>() {};
      return apiClient.invokeAPI(path, "POST", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
      
      
  
  
    }
    
    /**
     * Get VariableUserSource
     * Get VariableUserSource
     * @param id id of VariableUserSource
     * @param sourceId source id of VariableUserSource
     * @return InlineResponse20026
     */
    public InlineResponse20026 variableUserSourcesIdGet (Integer id, Integer sourceId) throws ApiException {
      Object postBody = null;
      byte[] postBinaryBody = null;
      
       // verify the required parameter 'id' is set
       if (id == null) {
          throw new ApiException(400, "Missing the required parameter 'id' when calling variableUserSourcesIdGet");
       }
       
       // verify the required parameter 'sourceId' is set
       if (sourceId == null) {
          throw new ApiException(400, "Missing the required parameter 'sourceId' when calling variableUserSourcesIdGet");
       }
       
      // create path and map variables
      String path = "/variableUserSources/{id}".replaceAll("\\{format\\}","json")
        .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
  
      // query params
      List<Pair> queryParams = new ArrayList<Pair>();
      Map<String, String> headerParams = new HashMap<String, String>();
      Map<String, Object> formParams = new HashMap<String, Object>();
  
      
      queryParams.addAll(apiClient.parameterToPairs("", "source_id", sourceId));
      
  
      
  
      
  
      final String[] accepts = {
        "application/json"
      };
      final String accept = apiClient.selectHeaderAccept(accepts);
  
      final String[] contentTypes = {
        "application/json"
      };
      final String contentType = apiClient.selectHeaderContentType(contentTypes);
  
      String[] authNames = new String[] {  };
  
      
  
      
      
      TypeRef returnType = new TypeRef<InlineResponse20026>() {};
      return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams, formParams, accept, contentType, authNames, returnType);
      
      
  
  
    }
    
    /**
     * Update VariableUserSource
     * Update VariableUserSource
     * @param id variable_id of VariableUserSource
     * @param sourceId source id of VariableUserSource
     * @param body VariableUserSource that should be updated
     * @return InlineResponse2002
     */
    public InlineResponse2002 variableUserSourcesIdPut (Integer id, Integer sourceId, VariableUserSource body) throws ApiException {
      Object postBody = body;
      byte[] postBinaryBody = null;
      
       // verify the required parameter 'id' is set
       if (id == null) {
          throw new ApiException(400, "Missing the required parameter 'id' when calling variableUserSourcesIdPut");
       }
       
       // verify the required parameter 'sourceId' is set
       if (sourceId == null) {
          throw new ApiException(400, "Missing the required parameter 'sourceId' when calling variableUserSourcesIdPut");
       }
       
      // create path and map variables
      String path = "/variableUserSources/{id}".replaceAll("\\{format\\}","json")
        .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
  
      // query params
      List<Pair> queryParams = new ArrayList<Pair>();
      Map<String, String> headerParams = new HashMap<String, String>();
  