Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: swagger-api/swagger-core
...
head fork: swagger-api/swagger-core
Checking mergeability… Don't worry, you can still create the pull request.
  • 3 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
View
6 samples/java-play2/app/controllers/PetApiController.java
@@ -18,7 +18,7 @@
@Path("/{petId}")
@ApiOperation(value = "Find pet by ID", notes = "Returns a pet when ID < 10. "
- + "ID > 10 or nonintegers will simulate API error conditions", responseClass = "com.wordnik.swagger.sample.model.Pet")
+ + "ID > 10 or nonintegers will simulate API error conditions", responseClass = "models.Pet")
@ApiErrors(value = { @ApiError(code = 400, reason = "Invalid ID supplied"),
@ApiError(code = 404, reason = "Pet not found") })
public static Result getPet(
@@ -58,7 +58,7 @@ public static Result updatePet() {
@GET
@Path("/findByStatus")
- @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma seperated strings", responseClass = "com.wordnik.swagger.sample.model.Pet", multiValueResponse = true)
+ @ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma seperated strings", responseClass = "models.Pet", multiValueResponse = true)
@ApiErrors(value = { @ApiError(code = 400, reason = "Invalid status value") })
public static Result findPetsByStatus(
@ApiParam(value = "Status values that need to be considered for filter", required = true, defaultValue = "available", allowableValues = "available,pending,sold", allowMultiple = true) @QueryParam("status") String status) {
@@ -67,7 +67,7 @@ public static Result findPetsByStatus(
@GET
@Path("/findByTags")
- @ApiOperation(value = "Finds Pets by tags", notes = "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", responseClass = "com.wordnik.swagger.sample.model.Pet", multiValueResponse = true)
+ @ApiOperation(value = "Finds Pets by tags", notes = "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", responseClass = "models.Pet", multiValueResponse = true)
@ApiErrors(value = { @ApiError(code = 400, reason = "Invalid tag value") })
@Deprecated
public static Result findPetsByTags(
View
2  samples/java-play2/app/controllers/UserApiController.java
@@ -88,7 +88,7 @@ public static Result deleteUser(
}
@Path("/{username}")
- @ApiOperation(value = "Get user by user name", responseClass = "com.wordnik.swagger.sample.model.User")
+ @ApiOperation(value = "Get user by user name", responseClass = "models.User")
@ApiErrors({ @ApiError(code = 400, reason = "Invalid username supplied"),
@ApiError(code = 404, reason = "User not found") })
public static Result getUserByName(
View
2  samples/java-play2/project/plugins.sbt
@@ -5,4 +5,4 @@ logLevel := Level.Warn
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
-addSbtPlugin("play" % "sbt-plugin" % "2.0")
+addSbtPlugin("play" % "sbt-plugin" % "2.0.1")
View
2  samples/scala-play2/app/controllers/PetApiController.scala
@@ -24,7 +24,7 @@ object PetApiController extends BaseApiController {
@Path("/{id}")
@ApiOperation(value = "Find pet by ID", notes = "Returns a pet when ID < 10. " +
- "ID > 10 or nonintegers will simulate API error conditions", responseClass = "Pet", httpMethod = "GET")
+ "ID > 10 or nonintegers will simulate API error conditions", responseClass = "models.Pet", httpMethod = "GET")
@ApiParamsImplicit(Array(
new ApiParamImplicit(name = "id", value = "ID of pet that needs to be fetched", required = true, dataType = "String", paramType = "path",
allowableValues = "range[0,10]")))
View
2  samples/scala-play2/app/controllers/UserApiController.scala
@@ -97,7 +97,7 @@ object UserApiController extends BaseApiController {
}
@Path("/{username}")
- @ApiOperation(value = "Get user by user name", responseClass = "com.wordnik.swagger.sample.model.User")
+ @ApiOperation(value = "Get user by user name", responseClass = "models.User")
@ApiErrors(Array(
new ApiError(code = 400, reason = "Invalid username supplied"),
new ApiError(code = 404, reason = "User not found")))

No commit comments for this range

Something went wrong with that request. Please try again.