Examples of ApiInfo


Examples of com.wordnik.swagger.model.ApiInfo

    /**
     * API Info as it appears on the swagger-ui page
     */
    private ApiInfo apiInfo() {
        return new ApiInfo(
                propertyResolver.getProperty("title"),
                propertyResolver.getProperty("description"),
                propertyResolver.getProperty("termsOfServiceUrl"),
                propertyResolver.getProperty("contact"),
                propertyResolver.getProperty("license"),
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

    this.customAnnotationReaders = customAnnotationReaders;
    return this;
  }

  private ApiInfo defaultApiInfo() {
    return new ApiInfo(
            this.swaggerGroup + " Title",
            "Api Description",
            "Api terms of service",
            "Contact Email",
            "Licence Type",
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

        ScannerFactory.setScanner(jaxrsScanner);
        ClassReaders.setReader(new JerseyApiReader());
        String docsBaseURL = env.get("docsHomeBaseUrl")!=null
                           ? env.get("docsHomeBaseUrl")
                           : env.get("homeBaseUrl");
        ApiInfo apiInfo = new ApiInfo(
                "Fluxtream Public REST API",
                "",
                String.format("%shtml/privacyPolicy.html", docsBaseURL),
                "info@fluxtream.org",
                "Apache 2.0",
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

    /**
     * API Info as it appears on the swagger-ui page
     */
    private ApiInfo apiInfo() {
        return new ApiInfo(
                propertyResolver.getProperty("title"),
                propertyResolver.getProperty("description"),
                propertyResolver.getProperty("termsOfServiceUrl"),
                propertyResolver.getProperty("contact"),
                propertyResolver.getProperty("license"),
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

    this.customAnnotationReaders = customAnnotationReaders;
    return this;
  }

  private ApiInfo defaultApiInfo() {
    return new ApiInfo(
            this.swaggerGroup + " Title",
            "Api Description",
            "Api terms of service",
            "Contact Email",
            "Licence Type",
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

  public ObjectMapper objectMapper() {
    return new ObjectMapper();
  }

  private ApiInfo apiInfo() {
    ApiInfo apiInfo = new ApiInfo(
            "My Apps API Title",
            "My Apps API Description",
            "My Apps API terms of service",
            "My Apps API Contact Email",
            "My Apps API Licence Type",
View Full Code Here

Examples of com.wordnik.swagger.model.ApiInfo

    public void setLicenseUrl(String licenseUrl) {
        this.licenseUrl = licenseUrl;
    }

    public ApiInfo toSwaggerModel() {
        return new ApiInfo(title, description, termsOfServiceUrl, contact, license, licenseUrl);
    }
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.