Giter VIP home page Giter VIP logo

swagger's People

Contributors

latrell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swagger's Issues

Compatible with swagger-php 2?

Are there any known incompabilities with swagger-php 2?

I used to use the master version with swagger-php 2, but now it's pinned to require the 1.* version:
4672cb8

Authorization bearer

Hello, how can I send a header in a request with this format?

Authorization: Bearer (token)

Regards!!

Release tag for Laravel 4.2

Please add a release tag for commit 1e68b31 so that those of us still on Laravel 4.2 can continue to use this library.

Requiring "latrell/swagger": "dev-master#1e68b31ae3ab559048e9f95e4f2849161bded0a7" does not work, since the master branch now has the Laravel 5.0 dependency.

Failed Composer output:

$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: remove laravel/framework v4.2.17
    - Conclusion: don't install laravel/framework v4.2.17
    - Conclusion: don't install laravel/framework v4.2.17
    - Conclusion: don't install laravel/framework v4.2.16
    - Conclusion: don't install laravel/framework v4.2.16
    - Conclusion: don't install laravel/framework v4.2.15
    - Conclusion: don't install laravel/framework v4.2.15
    - Conclusion: don't install laravel/framework v4.2.14
    - Conclusion: don't install laravel/framework v4.2.14
    - Conclusion: don't install laravel/framework v4.2.13
    - Conclusion: don't install laravel/framework v4.2.13
    - Conclusion: don't install laravel/framework v4.2.12
    - Conclusion: don't install laravel/framework v4.2.12
    - Conclusion: don't install laravel/framework v4.2.11
    - Conclusion: don't install laravel/framework v4.2.11
    - Conclusion: don't install laravel/framework v4.2.10
    - Conclusion: don't install laravel/framework v4.2.10
    - Conclusion: don't install laravel/framework v4.2.9
    - Conclusion: don't install laravel/framework v4.2.9
    - Conclusion: don't install laravel/framework v4.2.8
    - Conclusion: don't install laravel/framework v4.2.8
    - Conclusion: don't install laravel/framework v4.2.7
    - Conclusion: don't install laravel/framework v4.2.7
    - Conclusion: don't install laravel/framework v4.2.6
    - Conclusion: don't install laravel/framework v4.2.6
    - Conclusion: don't install laravel/framework v4.2.5
    - Conclusion: don't install laravel/framework v4.2.5
    - Conclusion: don't install laravel/framework v4.2.4
    - Conclusion: don't install laravel/framework v4.2.4
    - Conclusion: don't install laravel/framework v4.2.3
    - Conclusion: don't install laravel/framework v4.2.3
    - Conclusion: don't install laravel/framework v4.2.2
    - Conclusion: don't install laravel/framework v4.2.2
    - Conclusion: don't install laravel/framework v4.2.1
    - Installation request for latrell/swagger dev-master#1e68b31ae3ab559048e9f95e4f2849161bded0a7 -> satisfiable by latrell/swagger[dev-master].
    - Conclusion: don't install laravel/framework v4.2.1
    - Conclusion: don't install laravel/framework v4.2.0
    - latrell/swagger dev-master requires illuminate/console 5.* -> satisfiable by illuminate/console[v5.0.0, v5.0.4].
    - don't install illuminate/console v5.0.0|don't install laravel/framework v4.2.0
    - don't install illuminate/console v5.0.4|don't install laravel/framework v4.2.0
    - Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.10, v4.2.11, v4.2.12, v4.2.13, v4.2.14, v4.2.15, v4.2.16, v4.2.17, v4.2.2, v4.2.3, v4.2.4, v4.2.5, v4.2.6, v4.2.7, v4.2.8, v4.2.9].

使用的时候报错了

Unexpected "@swg\Api(path="/user/login")", should be inside or after @swg\Resource() in /Library/WebServer/Documents/laravel5.0/app/Http/routes.php on line 30

laravel5 route.php 里测试写了个

/**

  • @swg\Api(
  • path="/user/login",
  • @swg\Operation(
  •  method="GET",
    
  •  nickname="getLogin",
    
  •  summary="登录",
    
  •  notes="检查当前Cookie的登录状态有效性。",
    
  •  type="User",
    
  •  @SWG\ResponseMessages(
    
  •      @SWG\ResponseMessage(code=422, message="登录状态无效。"),
    
  •      @SWG\ResponseMessage(code=200, message="成功。")
    
  •  )
    
  • )
  • )
    */
    Route::get('user/login',array(
    'as'=>'getLogin',
    'uses'=>'UserController@getLogin'
    ));

Swagger Hangs on Laravel

Been trying to use Swagger on Laravel, The page never goes beyond "fetching resource list: http:/'www....", and it hangs.

The only error I get from then browser is
screenshot 2015-07-23 14 43 33

Not compatible with php7.2

In Swagger.php class in export method, it is using count() on string which is not compatible anymore in php7.2

NotFoundHttpException in RouteCollection.php line 143

Hi,

I have added "latrell/swagger": "^1.0" to my Composer file and I have Swagger and Swagger UI up and running well locally in my browser on a Windows based machine.

However when I deploy to Staging or Production, on a Linux based machine, when I try to access /api-docs I only get : NotFoundHttpException in RouteCollection.php line 143

The 'php artisan:list' command shows the /api-docs and /api-docs/docs/{page?} routes are in place on the Local Windows machine only.

However running 'php artisan:list' on the staging server doesn't show /api-docs and /api-docs/docs/{page?} routes.

Composer.json and composer.lock files are the same on blog local and Staging. On both I have dumped the autoload as well as deleted the Vendor folder and re-started by running composer install several times.

It always works well locally on a Windows PC but not on an Ubuntu 14.04 LTS 64 bit version. Both have the same code, same folder permissions etc.

can anyone help with this?

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.