Package io.lumify.web.clientapi.codegen

Examples of io.lumify.web.clientapi.codegen.ApiException


  }
  public ClientApiLongRunningProcessSubmitResponse findPath (String sourceGraphVertexId, String destGraphVertexId, Integer hops) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(sourceGraphVertexId == null || destGraphVertexId == null || hops == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/vertex/find-path".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here


  }
  public ClientApiVertexFindRelatedResponse findRelated (String graphVertexId, String limitParentConceptId, Integer maxVerticesToReturn) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(graphVertexId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/vertex/find-related".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }
  public ClientApiVertexMultipleResponse findMultiple (List<String> vertexIds, Boolean fallbackToPublic) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(vertexIds == null || fallbackToPublic == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/vertex/multiple".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  public void uploadOntology (File file) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(file == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/admin/uploadOntology".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

                    return json;
            } else {
                return JsonUtil.getJsonMapper().readValue(json, cls);
            }
        } catch (IOException e) {
            throw new ApiException(500, e.getMessage());
        }
    }
View Full Code Here

  }
  public ClientApiWorkspace getById (String workspaceId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(workspaceId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/workspace".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

            if (obj != null)
                return JsonUtil.getJsonMapper().writeValueAsString(obj);
            else
                return null;
        } catch (Exception e) {
            throw new ApiException(500, e.getMessage());
        }
    }
View Full Code Here

        if (response.getClientResponseStatus() == ClientResponse.Status.NO_CONTENT) {
            return null;
        } else if (response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) {
            return response.getEntityInputStream();
        } else {
            throw new ApiException(
                    response.getClientResponseStatus().getStatusCode(),
                    response.getEntity(String.class));
        }
    }
View Full Code Here

  }
  public void update (String data) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(data == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/workspace/update".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

                response = builder.delete(ClientResponse.class, serialize(body));
            } else {
                response = builder.type(contentType).delete(ClientResponse.class, serialize(body));
            }
        } else {
            throw new ApiException(500, "unknown method type " + method);
        }
        if (response.getClientResponseStatus() == ClientResponse.Status.NO_CONTENT) {
            return null;
        } else if (response.getClientResponseStatus().getFamily() == Family.SUCCESSFUL) {
            return (String) response.getEntity(String.class);
        } else {
            throw new ApiException(
                    response.getClientResponseStatus().getStatusCode(),
                    response.getEntity(String.class));
        }
    }
View Full Code Here

TOP

Related Classes of io.lumify.web.clientapi.codegen.ApiException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.