latrell / swagger Goto Github PK
View Code? Open in Web Editor NEWSwagger for Laravel
Swagger for Laravel
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
Hello, how can I send a header in a request with this format?
Authorization: Bearer (token)
Regards!!
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 里测试写了个
/**
method="GET",
nickname="getLogin",
summary="登录",
notes="检查当前Cookie的登录状态有效性。",
type="User",
@SWG\ResponseMessages(
@SWG\ResponseMessage(code=422, message="登录状态无效。"),
@SWG\ResponseMessage(code=200, message="成功。")
)
In Swagger.php class in export method, it is using count() on string which is not compatible anymore in php7.2
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.