Skip to content

Commit b610d01

Browse files
committed
Initial cut of sweeping changes
(10)
1 parent e06805a commit b610d01

File tree

41 files changed

+1313
-2608
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1313
-2608
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ repositories {
8787
}
8888
8989
dependencies {
90-
compile "io.springfox:springfox-grails:{snapshotVersion}" //<1>
90+
compile "io.springfox.grails:springfox-grails:{snapshotVersion}" //<1>
9191
}
9292
----
9393

springfox-grails-contract-tests/grails-app/controllers/grails/springfox/sample/UrlMappings.groovy

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,34 @@ package grails.springfox.sample
22

33
class UrlMappings {
44

5-
static mappings = {
6-
delete "/$controller/$id(.$format)?"(action:"delete")
7-
get "/$controller(.$format)?"(action:"index")
8-
get "/$controller/$id(.$format)?"(action:"show")
9-
post "/$controller(.$format)?"(action:"save")
10-
put "/$controller/$id(.$format)?"(action:"update")
11-
patch "/$controller/$id(.$format)?"(action:"patch")
5+
static mappings = {
6+
delete "/$controller/$id(.$format)?"(action: "delete")
7+
get "/$controller(.$format)?"(action: "index")
8+
get "/$controller/$id(.$format)?"(action: "show")
9+
post "/$controller(.$format)?"(action: "save")
10+
put "/$controller/$id(.$format)?"(action: "update")
11+
patch "/$controller/$id(.$format)?"(action: "patch")
1212

13-
"/"(controller: 'application', action:'index')
14-
"500"(view: '/error')
15-
"404"(view: '/notFound')
13+
"/"(controller: 'application', action: 'index')
14+
"500"(view: '/error')
15+
"404"(view: '/notFound')
16+
17+
//for testing
18+
group "/store", {
19+
group "/product", {
20+
"/$id"(controller: "product")
21+
}
22+
}
23+
group "/product", {
24+
"/apple"(controller:"product", id:"apple")
25+
"/htc"(controller:"product", id:"htc")
26+
}
27+
"/product"(controller: "product", action: "list")
28+
"/books"(resources:'book')
29+
"/books"(resources:'book', excludes:['delete', 'update'])
30+
"/books"(resources:'book', includes:['index', 'show'])
31+
"/books"(resources:'book') {
32+
"/authors"(resources:"author")
1633
}
34+
}
1735
}

0 commit comments

Comments
 (0)