Skip to content

Instantly share code, notes, and snippets.

@kciesielski
Last active December 15, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kciesielski/d649db4b740e8540c133 to your computer and use it in GitHub Desktop.
Save kciesielski/d649db4b740e8540c133 to your computer and use it in GitHub Desktop.
Simple definition of API docs (Swagger style)
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