yiisoft / yii-swagger Goto Github PK
View Code? Open in Web Editor NEWSwagger integration for Yii
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
Swagger integration for Yii
Home Page: https://www.yiiframework.com/
License: BSD 3-Clause "New" or "Revised" License
4
I don't know if step 4 in wich file paste this code. I supose that the file is /project/config/web.php, but when i put the code fail, the error say "Uncaught Error: Class "Yiisoft\Definitions\Reference"."
Please help me.
Another question is, if i have in config/web.php
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
],
where is the route to see swagger ui.
Thanks a lot for the support.
Q | A |
---|---|
Version | 1.0.? |
PHP version | |
Operating system |
Readme is missing info about Yiisoft\Swagger\Service\SwaggerService.
Steps to reproduce:
What I expect to see:
All routes should contain the path part from Locale middleware: {_language}
with an ability to change it on request
What I see:
All routes are exactly as they were declared
Looks like the problem is larger than it is. Having swagger declaration in third-party library developer may have wrong addresses that make our swagger package unusable. Just think of that you're changing /debug
route from yii-debug
package to /infra/debug
and you still have /debug
into your swagger panel, do not have /infra/debug
and any /debug
calls bring errors.
@yiisoft/yii3 do you have any thought about it?
Annotations are very frustrating to use. The IDE has poor support for it and is difficult to debug.
Suggest using the new PHP feature attributes,like https://github.com/uderline/openapi-php-attributes
See Swagger-PHP documentation for details on how to annotate your code.
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.