comparison target/scala-2.9.1/src_managed/main/routes_routing.scala @ 30:80b5628f17d8

modified ClaimModel/getInfo action
author one
date Wed, 03 Oct 2012 14:27:44 +0900
parents ad7cfb1f9d03
children be6bbd4967e4
comparison
equal deleted inserted replaced
29:fbb232e78422 30:80b5628f17d8
1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes 1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes
2 // @HASH:18c4a2571c38e53750b3b1ef9f8731961460e5c9 2 // @HASH:4e0ef425af6fa19939155c7491434fa337e3afc9
3 // @DATE:Wed Oct 03 02:51:34 JST 2012 3 // @DATE:Wed Oct 03 13:57:35 JST 2012
4 4
5 import play.core._ 5 import play.core._
6 import play.core.Router._ 6 import play.core.Router._
7 import play.core.j._ 7 import play.core.j._
8 8
37 // @LINE:11 37 // @LINE:11
38 val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) 38 val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+"""))))
39 39
40 40
41 // @LINE:13 41 // @LINE:13
42 val controllers_Claim_crateClaim6 = Route("POST", PathPattern(List(StaticPart("/claims/create")))) 42 val controllers_Claim_getClaimInfo6 = Route("GET", PathPattern(List(StaticPart("/claims/browse/"),DynamicPart("id", """[^/]+"""))))
43 43
44 44
45 // @LINE:14 45 // @LINE:14
46 val controllers_Claim_createMention7 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create")))) 46 val controllers_Claim_getClaimTree7 = Route("GET", PathPattern(List(StaticPart("/claims/consensus/"),DynamicPart("id", """[^/]+"""))))
47
48
49 // @LINE:16
50 val controllers_Claim_crateClaim8 = Route("POST", PathPattern(List(StaticPart("/claims/create"))))
47 51
48 52
49 // @LINE:17 53 // @LINE:17
50 val controllers_Application_hello8 = Route("POST", PathPattern(List(StaticPart("/hello")))) 54 val controllers_Claim_createMention9 = Route("POST", PathPattern(List(StaticPart("/claims/"),DynamicPart("mentionType", """[^/]+"""),StaticPart("/"),DynamicPart("id", """[^/]+"""),StaticPart("/create"))))
51
52
53 // @LINE:18
54 val controllers_Application_test9 = Route("GET", PathPattern(List(StaticPart("/test"))))
55 55
56 56
57 // @LINE:22 57 // @LINE:22
58 val controllers_Assets_at10 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) 58 val controllers_Application_hello10 = Route("POST", PathPattern(List(StaticPart("/hello"))))
59 59
60 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) 60
61 // @LINE:23
62 val controllers_Application_test11 = Route("GET", PathPattern(List(StaticPart("/test"))))
63
64
65 // @LINE:27
66 val controllers_Assets_at12 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+"""))))
67
68 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""GET""","""/claims/browse/$id<[^/]+>""","""controllers.Claim.getClaimInfo(id:String)"""),("""GET""","""/claims/consensus/$id<[^/]+>""","""controllers.Claim.getClaimTree(id:String)"""),("""POST""","""/claims/create""","""controllers.Claim.crateClaim()"""),("""POST""","""/claims/$mentionType<[^/]+>/$id<[^/]+>/create""","""controllers.Claim.createMention(mentionType:String, id:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)"""))
61 69
62 70
63 def routes:PartialFunction[RequestHeader,Handler] = { 71 def routes:PartialFunction[RequestHeader,Handler] = {
64 72
65 // @LINE:6 73 // @LINE:6
109 } 117 }
110 } 118 }
111 119
112 120
113 // @LINE:13 121 // @LINE:13
114 case controllers_Claim_crateClaim6(params) => { 122 case controllers_Claim_getClaimInfo6(params) => {
123 call(params.fromPath[String]("id", None)) { (id) =>
124 invokeHandler(_root_.controllers.Claim.getClaimInfo(id), HandlerDef(this, "controllers.Claim", "getClaimInfo", Seq(classOf[String])))
125 }
126 }
127
128
129 // @LINE:14
130 case controllers_Claim_getClaimTree7(params) => {
131 call(params.fromPath[String]("id", None)) { (id) =>
132 invokeHandler(_root_.controllers.Claim.getClaimTree(id), HandlerDef(this, "controllers.Claim", "getClaimTree", Seq(classOf[String])))
133 }
134 }
135
136
137 // @LINE:16
138 case controllers_Claim_crateClaim8(params) => {
115 call { 139 call {
116 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil)) 140 invokeHandler(_root_.controllers.Claim.crateClaim(), HandlerDef(this, "controllers.Claim", "crateClaim", Nil))
117 } 141 }
118 } 142 }
119 143
120 144
121 // @LINE:14 145 // @LINE:17
122 case controllers_Claim_createMention7(params) => { 146 case controllers_Claim_createMention9(params) => {
123 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) => 147 call(params.fromPath[String]("mentionType", None), params.fromPath[String]("id", None)) { (mentionType, id) =>
124 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String]))) 148 invokeHandler(_root_.controllers.Claim.createMention(mentionType, id), HandlerDef(this, "controllers.Claim", "createMention", Seq(classOf[String], classOf[String])))
125 } 149 }
126 } 150 }
127 151
128 152
129 // @LINE:17 153 // @LINE:22
130 case controllers_Application_hello8(params) => { 154 case controllers_Application_hello10(params) => {
131 call { 155 call {
132 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) 156 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil))
133 } 157 }
134 } 158 }
135 159
136 160
137 // @LINE:18 161 // @LINE:23
138 case controllers_Application_test9(params) => { 162 case controllers_Application_test11(params) => {
139 call { 163 call {
140 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) 164 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil))
141 } 165 }
142 } 166 }
143 167
144 168
145 // @LINE:22 169 // @LINE:27
146 case controllers_Assets_at10(params) => { 170 case controllers_Assets_at12(params) => {
147 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => 171 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) =>
148 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) 172 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])))
149 } 173 }
150 } 174 }
151 175