Documentation is automatically generated using iheart-radio/swagger
.
The additions are in conf/swagger.yml
and conf/api.routes
Try the sbt swagger
command that the iheart/sbt-swagger-play
plugin adds.
sbt swagger
Alternatively you can try to compile it fully. If the below is successful, then you can compile it also remotely (ie on Jenkins)
sbt clean compile dist
Reply example in swagger
Either it's a bug or it's missing the response tag.
Update the relevant api.routes
entry with:
# responses:
# '200':
# description: Successful operation
See other examples on how to put a sample response.
Reply example in swagger
Way 1:
# examples:
# application/json: |
# {
# "all_floors": [
# "<floor1 BASE64>",
# "<floor2 BASE64>"
# ]
# }
Way 2:
# responses:
# 200:
# description: success
# schema:
# $ref: '#/definitions/Version'
This requires a definition in conf/swagger.yml
, under definitions:
.