Skip to content

Commit 1342267

Browse files
committed
Updated documentation and release notes
resolves #16
1 parent e0f104d commit 1342267

File tree

2 files changed

+52
-45
lines changed

2 files changed

+52
-45
lines changed

README.adoc

Lines changed: 32 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# SpringFox Grails Integration
1+
= SpringFox Grails Integration
22

33
image:https://circleci.com/gh/springfox/springfox-grails-integration.svg?style=svg["CircleCI", link="https://circleci.com/gh/springfox/springfox-grails-integration"]
4-
image:https://codecov.io/gh/springfox/springfox-grails-integration/branch/master/graph/badge.svg["codecov",link="https://codecov.io/gh/springfox/springfox-grails-integration"] image:https://api.codacy.com/project/badge/Grade/77fbd793eb06447d9f1bf47eb8cdad8b["Codacy code quality", link="https://www.codacy.com/app/dilip-krishnan-github/springfox-grails-integration?utm_source=github.com&utm_medium=referral&utm_content=springfox/springfox-grails-integration&utm_campaign=Badge_Grade"]
4+
image:https://codecov.io/gh/springfox/springfox-grails-integration/branch/master/graph/badge.svg["codecov",link="https://codecov.io/gh/springfox/springfox-grails-integration"]
5+
image:https://api.codacy.com/project/badge/Grade/77fbd793eb06447d9f1bf47eb8cdad8b["Codacy code quality", link="https://www.codacy.com/app/dilip-krishnan-github/springfox-grails-integration?utm_source=github.com&utm_medium=referral&utm_content=springfox/springfox-grails-integration&utm_campaign=Badge_Grade"]
56

67
SpringFox Grails integration library that produces grails specific documentation.
78

8-
=== Development Environment
9+
== Development Environment
910

10-
To build from source
11+
To build from source using IntelliJ IDEA
1112

1213
- File >> open >> build.gradle
1314
- Make sure to check the 'use the default gradle wrapper' option.
@@ -31,18 +32,17 @@ To build from source
3132

3233
== Getting Started
3334

34-
:releaseVersion: {springfox-released-version}
35-
:snapshotVersion: {springfox-current-version}
36-
:springfoxRfc6570Version: {springfox-swagger-ui-rfc6570-version}
35+
:releaseVersion: 1.0.0
36+
:snapshotVersion: 1.0.1-SNAPSHOT
37+
:springfoxVersion: 2.7.0
38+
:springfoxRfc6570Version: 1.0.0
3739

3840
The SpringFox Grails integration library depends on http://springfox.github.io/springfox/docs/current/[Springfox]
39-
[[img-download]]
40-
image:::https://api.bintray.com/packages/springfox/maven-repo/springfox/images/download.svg[alt="Download", link="https://bintray.com/springfox/maven-repo/springfox/_latestVersion"]
4141

42+
image:https://api.bintray.com/packages/springfox/maven-repo/springfox/images/download.svg["Download", link="https://bintray.com/springfox/maven-repo/springfox/_latestVersion"]
4243

43-
=== Dependencies
44-
NOTE: The snapshots haven't been published yet to jcenter as of (01/15/2017)
4544

45+
== Dependencies
4646
The Springfox libraries are hosted on https://bintray.com/springfox/maven-repo/springfox/view[bintray] and jcenter.
4747
The artifacts can be viewed accessed at the following locations:
4848

@@ -61,8 +61,7 @@ TIP: Refer the main documentation on how to http://springfox.github.io/springfox
6161
NOTE: Please refer the main documentation on to http://springfox.github.io/springfox/docs/current/#dependencies[including the springfox-swagger2 dependencies]
6262
which are required for this integration library to work.
6363

64-
==== Gradle
65-
===== Release
64+
=== Release
6665
[source,groovy]
6766
[subs="verbatim,attributes"]
6867
----
@@ -77,7 +76,7 @@ dependencies {
7776

7877
NOTE: This project has not been released yet.
7978

80-
===== Snapshot
79+
=== Snapshot
8180

8281
[source,groovy]
8382
[subs="verbatim,attributes"]
@@ -91,14 +90,10 @@ dependencies {
9190
}
9291
----
9392

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}`
9594

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].
10095

101-
===== Configure the springfox grails integration
96+
== Configuration
10297

10398
In your Application (GrailsAutoConfiguration) startup entry-point follow the steps below
10499

@@ -149,12 +144,11 @@ class Application extends GrailsAutoConfiguration {
149144
}
150145
----
151146

152-
==== Swagger UI integration
147+
== Swagger UI integration
153148

154149
IMPORTANT: In order to use the bundled swagger UI as explained in ___step 4___ above. The following library needs to be
155150
included in the `build.gradle`
156151

157-
===== Release
158152
[source,groovy]
159153
[subs="verbatim,attributes"]
160154
----
@@ -163,40 +157,33 @@ repositories {
163157
}
164158
165159
dependencies {
166-
compile "compile "io.springfox:springfox-swagger-ui:{springfoxReleaseVersion}" //<1>
160+
compile "compile "io.springfox:springfox-swagger-ui:{springfoxVersion}" //<1>
167161
}
168162
----
169163

170164
NOTE: The latest released version is image:https://api.bintray.com/packages/springfox/maven-repo/springfox/images/download.svg["Springfox Version",
171165
link="https://bintray.com/springfox/maven-repo/springfox/_latestVersion"]
172166

173-
===== Snapshot
174-
175-
[source,groovy]
176-
[subs="verbatim,attributes"]
177-
----
178-
repositories {
179-
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
180-
}
181-
182-
dependencies {
183-
compile "compile "io.springfox:springfox-swagger-ui:{springfoxSnapshotVersion}" //<1>
184-
}
185-
----
186-
187-
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
193172
- GrailsPropertySelector - for overriding the selection of grails properties by the default convention
194173
- GrailsPropertyTransformer - for overriding the transformer of the grails property
195174
- GeneratedClassNamingStrategy - for naming the generated class mixins
196175

197-
==== Trouble shooting
198176

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
186+
you have to add something like this.
200187

201188
grails.serverURL: http://localhost:8080
202189

release-notes.adoc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
= 1.0.0 Release
2+
3+
# PRs (Thank you 🙇 )
4+
- (#15) Initialize some test data in order to easily test the demo app @rdmueller
5+
- (#14) fix for #13 @rdmueller
6+
- (#5 ) fix #4 - updated readme @rdmueller
7+
8+
# Features
9+
- (#9) Move common infrastructure to springfox core current enhancement @dilipkrish
10+
- (#3) Support @JsonIgnoreProperties annotation current enhancement @zyro23
11+
- (#11) Format parameter should be optional enhancement @rdmueller
12+
13+
# Bugs
14+
- (#13) Can't create new objects in test app @rdmueller
15+
- (#12) OPTIONS /edit? enhancement @rdmueller
16+
- (#8 ) Maven build file? @rdmueller
17+
- (#7 ) Local maven dependency @rdmueller
18+
- (#10) Test-App doesn't work bug @rdmueller
19+
- (#6 ) Test run fine but... bug @rdmueller
20+
- (#4 ) Rest-Ressources need serverURL configured @rdmueller

0 commit comments

Comments
 (0)