Last active
December 15, 2015 14:59
-
-
Save kciesielski/d649db4b740e8540c133 to your computer and use it in GitHub Desktop.
Simple definition of API docs (Swagger style)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait ExampleServletSwaggerDefinition extends SwaggerSupport { | |
//... | |
val getOperation = apiOperation[ExampleItemList]("getAllItems") | |
.parameter(queryParam[String]("type").description("Filter value for item type").optional) | |
.summary("Gets all example items") | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment