nostop8 / yii2-rest-api-doc Goto Github PK
View Code? Open in Web Editor NEWSimple documentation generator for Yii2 REST applications based on defined API endpoints and actions annotations.
License: MIT License
Simple documentation generator for Yii2 REST applications based on defined API endpoints and actions annotations.
License: MIT License
Установил через компосер -> прописал в конфиге все по инструкции
перехожу на страницу site.name/documentation, получаю вот что: link
как двигаться дальше не пойму.
PHP Notice – yii\base\ErrorException
Undefined index: OPTIONS
[
'class' => 'yii\rest\UrlRule',
'controller' => 'nameController',
'extraPatterns' => [
'GET total' => 'total',
'OPTIONS total' => 'options'
],
],
Hi everybody,
thanks for creating this tool, it's quite helpful.
Sadly I'm running into a bug that's really stopping me from using the application right now: Every time I click on one of the generated panels, the contents are visible for a split second and then get closed again.
I investigated this behaviour a bit and it seems like the css selector .collapse:not(.show)
that got added from another bootstrap package is to blame.
I would be really grateful for any hints on how to resolve this conflict.
Can you please tell me what versions of Bootstrap and jQuery you require? The Bootstrapplugin is not required in your composerand I don't know what version you used, I tried 4.x and 3.x and Bootstrap 3.x seems to work, but I always receive a JS error when clicking on an item
Uncaught Error: Syntax error, unrecognized expression: #xxxx
If you are using a controller that is inside of a module like this:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
[
'class' => 'yii\rest\UrlRule',
'controller' => ['markets' => 'dynamic-pricing/market'],
'prefix' => '/api/',
'only' => [
'GET /' => 'index',
]
]
],
],
You will receive this console error when trying to open the collapsed API box:
Uncaught Error: Syntax error, unrecognized expression: #Dynamic-pricing/market
It seems to be from there being a slash in the anchor link. Should we just replace these forward slashes with dashes? I tried that locally and it seems to fix the issue. The only problem is that I'm stuck with a title like "Dynamic-pricing-market" in the header.
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.