Skip to content

Commit a29e766

Browse files
committed
Updated version
1 parent 732cbd4 commit a29e766

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

samples/scala-play2/app/controllers/PetApiController.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ class PetApiController extends BaseApiController {
3333
}
3434
}
3535

36-
@ApiOperation(value = "Add a new Pet", response = classOf[Void], httpMethod = "POST")
36+
@ApiOperation(value = "Add a new Pet",
37+
response = classOf[Void],
38+
httpMethod = "POST",
39+
authorizations = Array(new Authorization(value="oauth2",
40+
scopes = Array(
41+
new AuthorizationScope(scope = "test:anything", description = "anything"),
42+
new AuthorizationScope(scope = "test:nothing", description = "nothing")
43+
))))
3744
@ApiResponses(Array(
3845
new ApiResponse(code = 405, message = "Invalid input")))
3946
@ApiImplicitParams(Array(

samples/scala-play2/project/Build.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ object ApplicationBuild extends Build {
88
val appVersion = "1.3.2"
99

1010
val appDependencies: Seq[sbt.ModuleID] = Seq(
11-
"com.wordnik" %% "swagger-play2" % "1.3.2",
12-
"com.wordnik" %% "swagger-play2-utils" % "1.3.2"
11+
"com.wordnik" %% "swagger-play2" % "1.3.3",
12+
"com.wordnik" %% "swagger-play2-utils" % "1.3.3"
1313
)
1414

1515
val main = play.Project(appName, appVersion, appDependencies).settings(

0 commit comments

Comments
 (0)