swagger-play-sample-app
swagger-play-sample-app copied to clipboard
A sample play app which uses swagger plugin to make the age old pet store swagger compliant.
Swagger Play Framework Sample App
Overview
This is a project to illustrate use of swagger plugin on play-framework.
Prerequisites
You need the following installed and available in your $PATH:
To build
Clone swagger-play from https://github.com/wordnik/swagger-play and build it using instructions in the README.md file
In swagger-play-sample-app, edit conf/dependencies.yml and update the line below to point to your locally cloned (and built) swagger-play. Note! This needs to be an absolute path!
artifact: "/path/to/swagger-play"
Build and run swagger-play-sample-app:
play install scala play deps play run
Take Swagger UI for a spin
If you hit http://localhost:9000 you should see swagger-ui (https://github.com/wordnik/swagger-ui) come up for the sample app
Test API Listing directly
Open a browser window and confirm you can see API listing by hitting the following URLs