Package com.google.api.explorer.client.base

Examples of com.google.api.explorer.client.base.Schema


    // Add an editor row for each parameter in the method.
    int row = 0;
    for (Map.Entry<String, Schema> entry : sortedParams.entrySet()) {
      String paramName = entry.getKey();
      Schema param = entry.getValue();
      addEditorRow(paramName, param, row++);
    }

    // Add a row for the fields parameter if there is a response object
    Schema responseSchema = service.responseSchema(method);
    if (responseSchema != null) {
      addEmbeddedFieldsRow(service, responseSchema, row++);
    }

    Schema requestSchema = service.requestSchema(method);
    bodyForm.setContent(service, method, requestSchema, bodyText);

    // (Maybe) add row for request body editor.
    boolean canHaveRequestBody = requestSchema != null;
    String requestParameterText = (method.getHttpMethod() == HttpMethod.PATCH) ? "Patch body"
View Full Code Here


    Map<String, Schema> parameters = service.getParameters();
    if (parameters == null) {
      return "";
    }

    Schema parameter = parameters.get("fields");
    if (parameter == null) {
      return "";
    }

    return Strings.nullToEmpty(parameter.getDescription());
  }
View Full Code Here

TOP

Related Classes of com.google.api.explorer.client.base.Schema

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.