Package com.carma.swagger.doclet.model

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


              subResourceParser.parse(declarations);
            }
            continue;
          }

          ApiDeclaration declaration = declarations.get(resourcePath);
          if (declaration == null) {
            declaration = new ApiDeclaration(this.swaggerVersion, this.apiVersion, this.basePath, resourcePath, null, null, Integer.MAX_VALUE, null);
            declaration.setApis(new ArrayList<Api>());
            declaration.setModels(new HashMap<String, Model>());
            declarations.put(resourcePath, declaration);
          }

          // look for a priority tag for the resource listing and set on the resource if the resource hasn't had one set
          setApiPriority(classResourcePriority, method, currentClassDoc, declaration);

          // look for a method level description tag for the resource listing and set on the resource if the resource hasn't had one set
          setApiDescription(classResourceDescription, method, declaration);

          // find api this method should be added to
          addMethod(parsedMethod, declaration);

          // add models
          Set<Model> methodModels = methodParser.models();
          Map<String, Model> idToModels = addApiModels(classModels, methodModels, method);
          declaration.getModels().putAll(idToModels);
        }
      }
      currentClassDoc = currentClassDoc.superclass();
      // ignore parent object class
      if (!ParserHelper.hasAncestor(currentClassDoc)) {
View Full Code Here

TOP

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

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.