Package com.carma.swagger.doclet.model

Examples of com.carma.swagger.doclet.model.Method


      } else {
        for (MethodDoc method : currentClassDoc.methods()) {
          ApiMethodParser methodParser = this.parentMethod == null ? new ApiMethodParser(this.options, this.rootPath, method, this.classes,
              defaultErrorTypeClass) : new ApiMethodParser(this.options, this.parentMethod, method, this.classes, defaultErrorTypeClass);

          Method parsedMethod = methodParser.parse();
          if (parsedMethod == null) {
            continue;
          }

          // see which resource path to use for the method, if its got a resourceTag then use that
          // otherwise use the root path
          String resourcePath = buildResourcePath(classResourcePath, method);

          if (parsedMethod.isSubResource()) {
            ClassDoc subResourceClassDoc = lookUpClassDoc(method.returnType());
            if (subResourceClassDoc != null) {
              // delete class from the dictionary to handle recursive sub-resources
              Collection<ClassDoc> shrunkClasses = new ArrayList<ClassDoc>(this.classes);
              shrunkClasses.remove(currentClassDoc);
View Full Code Here


    // ************************************
    List<String> consumes = ParserHelper.getConsumes(this.methodDoc);
    List<String> produces = ParserHelper.getProduces(this.methodDoc);

    // final result!
    return new Method(this.httpMethod, this.methodDoc.name(), path, parameters, responseMessages, summary, notes, returnTypeName, returnTypeItemsRef,
        returnTypeItemsType, consumes, produces, authorizations, deprecated);
  }
View Full Code Here

TOP

Related Classes of com.carma.swagger.doclet.model.Method

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.