Package com.wordnik.client

Examples of com.wordnik.client.ApiException


  //error info- code: 400 reason: "Invalid order" model: <none>
  public void placeOrder (Order body) throws ApiException {
    Object postBody = body;
    // verify required params are set
    if(body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here


  //error info- code: 404 reason: "Order not found" model: <none>
  public void deleteOrder (String orderId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(orderId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "orderId" + "\\}", apiInvoker.escapeString(orderId.toString()));

    // query params
View Full Code Here

  //error info- code: 404 reason: "Order not found" model: <none>
  public Order getOrderById (String orderId) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(orderId == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/store/order/{orderId}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "orderId" + "\\}", apiInvoker.escapeString(orderId.toString()));

    // query params
View Full Code Here

  //error info- code: 404 reason: "User not found" model: <none>
  public void updateUser (String username, User body) throws ApiException {
    Object postBody = body;
    // verify required params are set
    if(username == null || body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

  //error info- code: 404 reason: "User not found" model: <none>
  public void deleteUser (String username) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(username == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

  //error info- code: 404 reason: "User not found" model: <none>
  public User getUserByName (String username) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(username == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/{username}".replaceAll("\\{format\\}","json").replaceAll("\\{" + "username" + "\\}", apiInvoker.escapeString(username.toString()));

    // query params
View Full Code Here

  //error info- code: 400 reason: "Invalid username and password combination" model: <none>
  public String loginUser (String username, String password) throws ApiException {
    Object postBody = null;
    // verify required params are set
    if(username == null || password == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/login".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }
  public void createUsersWithArrayInput (List<User> body) throws ApiException {
    Object postBody = body;
    // verify required params are set
    if(body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/createWithArray".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

  }
  public void createUsersWithListInput (List<User> body) throws ApiException {
    Object postBody = body;
    // verify required params are set
    if(body == null ) {
       throw new ApiException(400, "missing required params");
    }
    // create path and map variables
    String path = "/user/createWithList".replaceAll("\\{format\\}","json");

    // query params
View Full Code Here

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

    // query params
View Full Code Here

TOP

Related Classes of com.wordnik.client.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.