GithubHelp home page GithubHelp logo

qdrk / swagger-core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swagger-api/swagger-core

0.0 2.0 0.0 17.99 MB

Examples and server integrations for generating the Swagger API Specification, which enables easy access to your REST API

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

License: Other

swagger-core's Introduction

Swagger Core library

Build Status

The goal of Swagger™ is to define a standard, language-agnostic interface to REST APIs which allows both humans and computers to discover and understand the capabilities of the service without access to source code, documentation, or through network traffic inspection. When properly defined via Swagger, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interfaces have done for lower-level programming, Swager removes the guesswork in calling the service.

Swagger-core is the Java/Scala implementation of Swagger. It supports JAX-RS, plain Servlets, and Play Framework.

Check out Swagger-Spec for additional information about the Swagger project, including additional libraries with support for SpringMVC, other languages and more.

See the Wiki!

The github wiki contains documentation, samples, etc. Start there.

Support

The following methods are available to obtain support for Swagger:

  • The Swagger Google Group - This would normally be your first stop to get support for Swagger. Here you can find previously asked question, and ask new ones. When asking a question, please provide as much information as you can regarding the environment you use (development language, library, versions.
  • The Issues tab - Please open feature requests and bugs here. If you're not sure you encountered a bug, or if it's a general usage question, please use the Google Group mentioned above.
  • IRC! you can find us on freenode in the channel #Swagger. You can talk with us directly there.

Get started with Swagger!

See the guide on getting started with swagger to get started with adding swagger to your API.

Overview

This is a project to build the swagger-core library, which is required for the Wordnik implementation of the Swagger spec. For more information about Wordnik's APIs, please visit http://developer.wordnik.com.

Change History

If you're interested in the change history of swagger and the swagger-core framework, see here.

Prerequisites

You need the following installed and available in your $PATH:

  • - Java 6, 7 (http://java.oracle.com)
  • - Apache maven 3.0.4 or greater (http://maven.apache.org/)

    To build from source (currently 1.3.7)

    # first time building locally
    mvn -N
    

    Subsequent builds:

    mvn install
    

    This will build the modules and sample apps.

    Of course if you don't want to build locally you can grab artifacts from maven central:

    http://repo1.maven.org/maven2/com/wordnik/

    Sample Apps

    There are a number of sample apps in the samples folder:

    java-jaxrs Java-based swagger server with JAX-RS

    scala-jaxrs Scala-based swagger server with JAX-RS

    scala-jaxrs-apm Scala-based swagger server using wordnik-oss utils for Application Performance Monitoring (APM)

    To run a sample app after initial compile:

    # run scala-jaxrs sample app
    cd samples/scala-jaxrs
    
    mvn jetty:run
    

    And the Play2 samples:

    java-play2 Java-based Play2 sample app

    scala-play2 Scala-based Play2 sample app

    To run the Play2 sample apps:

    cd samples/java-play2
    
    play run
    

    License

    Copyright 2014 Reverb Technologies, Inc.

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

  • swagger-core's People

    Contributors

    fehguy avatar rpidikiti avatar ayush avatar webron avatar deepak-michael avatar akkie avatar mkrogemann avatar vjousse avatar azhawkes avatar danielwegener avatar pilhuhn avatar johannbarbie avatar redlab avatar vandeti avatar chirino avatar jim-zhang avatar jorgenbraseth avatar skyebook avatar cb372 avatar giovannibotta avatar ieugen avatar casualjim avatar knutz3n avatar jaliss avatar jlopezr avatar leifwarner avatar madmartian avatar mmatula avatar miketzian avatar pconnelly15 avatar

    Watchers

    fpvsim 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.