Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering mechanism #40

Merged
merged 1 commit into from
Feb 26, 2014
Merged

Filtering mechanism #40

merged 1 commit into from
Feb 26, 2014

Conversation

dayman
Copy link
Contributor

@dayman dayman commented Feb 26, 2014

There is now an ability to set excluding filters (in runtime or when initializing) so that some of the results (controllers or methods) would be ignored (e.g. filtered by api version or device).
Excluding with @ApiExclude uses this mechanism from now and could be used as an example.

Usage:
<bean class="com.knappsack.swagger4springweb.controller.ApiDocumentationController">
  <property name="filters">
    <list>
      <ref bean="filter1"/>
      <ref bean="filter2"/>
    </list>
  </property>
</bean>

Or they could be added "on the go" using setFilters(..)

There is now an ability to set excluding filters (in runtime or when initializing) so that some of the results (controllers or methods) would be ignored (e.g. filtered by api version or device).
Excluding with @ApiExclude uses this mechanism from now and could be used as an example.
@wkennedy
Copy link
Owner

Nice feature dayman, thanks. I'll add this to the example and the documentation.

wkennedy pushed a commit that referenced this pull request Feb 26, 2014
@wkennedy wkennedy merged commit b963bec into wkennedy:master Feb 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants