client-api/src/main/java/com/streamsets/datacollector/client/api/DefinitionsApi.java
public DefinitionsJson getDefinitions (HideStage.Type hideStage) throws ApiException {
    Object postBody = null;
    byte[] postBinaryBody = null;

    // create path and map variables
    String path = "/v1/definitions".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> queryParams = new ArrayList<Pair>();
    if (hideStage != null) {
      queryParams.add(new Pair("hideStage", hideStage.name()));
    }
    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 = {

    };
    final String contentType = apiClient.selectHeaderContentType(contentTypes);

    String[] authNames = new String[] { "basic" };

    TypeRef returnType = new TypeRef<DefinitionsJson>() {};
    return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams,
        formParams, accept, contentType, authNames, returnType);
  }
public DefinitionsJson getDefinitions (HideStage.Type hideStage) throws ApiException {
    Object postBody = null;
    byte[] postBinaryBody = null;

    // create path and map variables
    String path = "/v1/definitions".replaceAll("\\{format\\}","json");

    // query params
    List<Pair> queryParams = new ArrayList<Pair>();
    if (hideStage != null) {
      queryParams.add(new Pair("hideStage", hideStage.name()));
    }
    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 = {

    };
    final String contentType = apiClient.selectHeaderContentType(contentTypes);

    String[] authNames = new String[] { "basic" };

    TypeRef returnType = new TypeRef<DefinitionsJson>() {};
    return apiClient.invokeAPI(path, "GET", queryParams, postBody, postBinaryBody, headerParams,
        formParams, accept, contentType, authNames, returnType);
  }
public DefinitionsJson getDefinitions ( HideStage . Type hideStage ) throws ApiException { Object postBody = null ; byte [ ] postBinaryBody = null ; // create path and map variables String path = "/v1/definitions" . replaceAll ( "\\{format\\}" , "json" ) ; // query params List < Pair > queryParams = new ArrayList < Pair > ( ) ; if ( hideStage != null ) { queryParams . add ( new Pair ( "hideStage" , hideStage . name ( ) ) ) ; } 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 = { } ; final String contentType = apiClient . selectHeaderContentType ( contentTypes ) ; String [ ] authNames = new String [ ] { "basic" } ; TypeRef returnType = new TypeRef < DefinitionsJson > ( ) { } ; return apiClient . invokeAPI ( path , "GET" , queryParams , postBody , postBinaryBody , headerParams , formParams , accept , contentType , authNames , returnType ) ; }
Returns pipeline &amp; stage configuration definitions
This will fetch defintions based on the hideStage filter

@return DefinitionsJson
Returns pipeline &amp ; stage configuration definitions This will fetch defintions based on the hideStage filter