Package com.carma.swagger.doclet

Examples of com.carma.swagger.doclet.Recorder.record()


      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);
      }
    }

    // write out json for api
    ResourceListing listing = new ResourceListing(SWAGGER_VERSION, this.options.getApiVersion(), this.options.getDocBasePath(), resources,
View Full Code Here


    // write out json for api
    ResourceListing listing = new ResourceListing(SWAGGER_VERSION, this.options.getApiVersion(), this.options.getDocBasePath(), resources,
        this.options.getApiAuthorizations(), this.options.getApiInfo());
    File docFile = new File(outputDirectory, "service.json");
    recorder.record(docFile, listing);

  }

  private void copyUi() throws IOException {
    File outputDirectory = this.options.getOutputDirectory();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.