You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: The snapshots haven't been published yet to jcenter as of (01/15/2017)
45
44
45
+
== Dependencies
46
46
The Springfox libraries are hosted on https://bintray.com/springfox/maven-repo/springfox/view[bintray] and jcenter.
47
47
The artifacts can be viewed accessed at the following locations:
48
48
@@ -61,8 +61,7 @@ TIP: Refer the main documentation on how to http://springfox.github.io/springfox
61
61
NOTE: Please refer the main documentation on to http://springfox.github.io/springfox/docs/current/#dependencies[including the springfox-swagger2 dependencies]
62
62
which are required for this integration library to work.
63
63
64
-
==== Gradle
65
-
===== Release
64
+
=== Release
66
65
[source,groovy]
67
66
[subs="verbatim,attributes"]
68
67
----
@@ -77,7 +76,7 @@ dependencies {
77
76
78
77
NOTE: This project has not been released yet.
79
78
80
-
===== Snapshot
79
+
=== Snapshot
81
80
82
81
[source,groovy]
83
82
[subs="verbatim,attributes"]
@@ -91,14 +90,10 @@ dependencies {
91
90
}
92
91
----
93
92
94
-
NOTE: The current snapshot version that is available is `1.0.0-SNAPSHOT`
93
+
NOTE: The current snapshot version that is available is `{snapshotVersion}`
95
94
96
-
== Demo application
97
-
98
-
The demo application is available in https://github.com/springfox/springfox-grails-demo[this repository]. You can
99
-
see a live demo running or https://immense-escarpment-17128.herokuapp.com/swagger-ui.html[heroku here].
100
95
101
-
===== Configure the springfox grails integration
96
+
== Configuration
102
97
103
98
In your Application (GrailsAutoConfiguration) startup entry-point follow the steps below
104
99
@@ -149,12 +144,11 @@ class Application extends GrailsAutoConfiguration {
149
144
}
150
145
----
151
146
152
-
==== Swagger UI integration
147
+
== Swagger UI integration
153
148
154
149
IMPORTANT: In order to use the bundled swagger UI as explained in ___step 4___ above. The following library needs to be
NOTE: The current snapshot in development is `2.7.0-SNAPSHOT`
188
-
189
-
==== Extensibility
190
-
191
-
TODO: Add more docs
192
-
- Conventions - for adding custom conventions for replacing grails types
167
+
== Extensibility
168
+
The library comes with intelligent defaults imeplemented by `DefaultGrailsAlternateTypeRuleConvention`. However the
169
+
defaults can be tweaked using one of these extensibility mechanisms. The following classes can be implemented and
170
+
registered as a bean to augment default behavior.
171
+
- AlternateTypeRuleConvention - for adding custom conventions for replacing grails types
193
172
- GrailsPropertySelector - for overriding the selection of grails properties by the default convention
194
173
- GrailsPropertyTransformer - for overriding the transformer of the grails property
195
174
- GeneratedClassNamingStrategy - for naming the generated class mixins
196
175
197
-
==== Trouble shooting
198
176
199
-
If you get an exception when you try to run your app, this might be because of the chosen profile for your application. If you use the `rest-api` profile, everything should be fine, but if you've chosen the `web` profile, it is likely that you have to add something like
177
+
== Demo application
178
+
179
+
The demo application is available in https://github.com/springfox/springfox-grails-demo[this repository]. You can
180
+
see a live demo running or https://immense-escarpment-17128.herokuapp.com/swagger-ui.html[heroku here].
181
+
182
+
== Trouble shooting
183
+
184
+
If you get an exception when you try to run your app, this might be because of the chosen profile for your application.
185
+
If you use the `rest-api` profile, everything should be fine, but if you've chosen the `web` profile, it is likely that
0 commit comments