com.holonplatform.jaxrs.swagger.v2.internal

## Class DefaultApiReader

- java.lang.Object
- - com.holonplatform.jaxrs.swagger.v2.internal.DefaultApiReader

- All Implemented Interfaces:
    ApiReader<io.swagger.models.Swagger>

      public class DefaultApiReader
      extends Object
      implements ApiReader<io.swagger.models.Swagger>

  Default `ApiReader` implementation.
  Since:
    5.2.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultApiReader(io.swagger.config.SwaggerConfig configuration, boolean includeAll)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `io.swagger.models.Swagger` | `read(Set<Class<?>> classes)` Read the given API resource class set and build the API definition model.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface com.holonplatform.jaxrs.swagger.ApiReader

      `read`

- - ### Constructor Detail

    - #### DefaultApiReader

          public DefaultApiReader(io.swagger.config.SwaggerConfig configuration,
                                  boolean includeAll)

  - ### Method Detail

    - #### read

          public io.swagger.models.Swagger read(Set<Class<?>> classes)
                                         throws ApiConfigurationException

      Description copied from interface: `ApiReader`
      Read the given API resource class set and build the API definition model.
      Specified by:
        `read` in interface `ApiReader<io.swagger.models.Swagger>`
      Parameters:
        `classes` - The API resource classes from which to create the API definition model
      Returns:
        The API definition model
      Throws:
        `ApiConfigurationException` - If an error occurred

Copyright © 2019 The Holon Platform. All rights reserved.