GithubHelp home page GithubHelp logo

bhanditz / swagger-play-sample-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swagger-api/swagger-play-sample-app

0.0 2.0 0.0 268 KB

A sample play app which uses swagger plugin to make the age old pet store swagger compliant.

Home Page: http://swagger.wordnik.com/

Java 18.63% Scala 5.90% HTML 5.26% JavaScript 42.99% CSS 27.22%

swagger-play-sample-app's Introduction

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:

  • - Play Framework 1.2.4
  • - Scala Plugin (play install scala)
  • - Swagger Core pre-release version
  • - Swagger Play Framework Plugin https://github.com/wordnik/swagger-play
  • - Scala 2.8.1 (http://www.scala-lang.org)

    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

  • - http://localhost:9000/resources.{format} : A list of available resources
  • - http://localhost:9000/help/user.{format} : User Resource API and Models
  • - http://localhost:9000/help/pet.{format} : Pet Resource API and Models
  • - http://localhost:9000/help/store.{format} : Store Resource API and Models
  • swagger-play-sample-app's People

    Contributors

    ayush avatar fehguy avatar

    Watchers

    James Cloos avatar  avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google โค๏ธ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.