File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff 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(
You can’t perform that action at this time.
0 commit comments