Package com.carma.swagger.doclet.model

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


    Recorder recorder = this.options.getRecorder();
    for (ApiDeclaration api : apis) {
      String resourcePath = api.getResourcePath();
      if (!Strings.isNullOrEmpty(resourcePath)) {
        String resourceName = resourcePath.replaceFirst("/", "").replaceAll("/", "_").replaceAll("[\\{\\}]", "");
        resources.add(new ResourceListingAPI("/" + resourceName + ".{format}", api.getDescription()));
        File apiFile = new File(outputDirectory, resourceName + ".json");
        recorder.record(apiFile, api);
      }
    }
View Full Code Here

TOP

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

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.