All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.factset.sdk.IRNNotes.api.IdentifiersApi Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package com.factset.sdk.IRNNotes.api;

import com.factset.sdk.IRNNotes.ApiException;
import com.factset.sdk.IRNNotes.ApiClient;
import com.factset.sdk.IRNNotes.ApiResponse;
import com.factset.sdk.IRNNotes.Configuration;
import com.factset.sdk.IRNNotes.Pair;

import jakarta.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import com.factset.sdk.IRNNotes.models.ProblemDetails;

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")

public class IdentifiersApi {
  private ApiClient apiClient;

  public IdentifiersApi() {
    this(Configuration.getDefaultApiClient());
  }

  public IdentifiersApi(ApiClient apiClient) {
    this.apiClient = apiClient;
  }
  
  private static final Map getIdentifiersResponseTypeMap = new HashMap();
  static {
    getIdentifiersResponseTypeMap.put(200, new GenericType>(){});
    getIdentifiersResponseTypeMap.put(400, new GenericType(){});
  }

  


  /**
   * Get the API client
   *
   * @return API client
   */
  public ApiClient getApiClient() {
    return apiClient;
  }

  /**
   * Set the API client
   *
   * @param apiClient an instance of API client
   */
  public void setApiClient(ApiClient apiClient) {
    this.apiClient = apiClient;
  }

  /**
   * Get all the identifier details for given identifiers
   * 
   * @param identifiers Identifiers (optional)
   * @return java.util.List
   * @throws ApiException if fails to make API call
   * @http.response.details
     
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ public java.util.List getIdentifiers(String identifiers) throws ApiException { return getIdentifiersWithHttpInfo(identifiers).getData(); } /** * Get all the identifier details for given identifiers * * @param identifiers Identifiers (optional) * @return ApiResponse<java.util.List> * @throws ApiException if fails to make API call * @http.response.details
Status Code Description Response Headers
200 Success -
400 Bad Request -
*/ public ApiResponse> getIdentifiersWithHttpInfo(String identifiers) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/identifiers"; // query params java.util.List localVarQueryParams = new java.util.ArrayList(); java.util.Map localVarHeaderParams = new java.util.HashMap(); java.util.Map localVarCookieParams = new java.util.HashMap(); java.util.Map localVarFormParams = new java.util.HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "identifiers", identifiers)); final String[] localVarAccepts = { "application/json" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" }; ApiResponse< java.util.List > apiResponse = apiClient.invokeAPI("IdentifiersApi.getIdentifiers", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, getIdentifiersResponseTypeMap, false); return apiResponse; } }