Yii2: doc http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html deprecated

Created on 15 Jul 2017  路  4Comments  路  Source: yiisoft/yii2

What steps will reproduce the problem?

http://www.yiiframework.com/doc-2.0/guide-rest-quick-start.html

What is the expected result?

this tutorial don`t work

What do you get instead?

update this tutorial

Additional info

https://toster.ru/q/442841

| Q | A
| ---------------- | ---
| Yii version | 2.0.12
| PHP version | 7.1.0
| Operating system | Win 10 x64

expired rest need more info docs

Most helpful comment

why?? REST works fine for me by just following documentation.

Yes you need CORS for preflight requests but that can be added as a note and not as a requirement because it is a web browsers thing and REST is not meant to be only consumed by web browsers. (cors part was documented here)

The other maybe missing note is remembering people to not skip this part when installing Yii:
http://www.yiiframework.com/doc-2.0/guide-start-installation.html#configuring-web-servers

also that link is mixing REST and WEB apps. the following shouldn't be used for rest:

'request' => [
            'enableCookieValidation' => true,
            'enableCsrfValidation' => true,

REST should be stateless. mixing both isn't correct IMHO.

All 4 comments

why?? REST works fine for me by just following documentation.

Yes you need CORS for preflight requests but that can be added as a note and not as a requirement because it is a web browsers thing and REST is not meant to be only consumed by web browsers. (cors part was documented here)

The other maybe missing note is remembering people to not skip this part when installing Yii:
http://www.yiiframework.com/doc-2.0/guide-start-installation.html#configuring-web-servers

also that link is mixing REST and WEB apps. the following shouldn't be used for rest:

'request' => [
            'enableCookieValidation' => true,
            'enableCsrfValidation' => true,

REST should be stateless. mixing both isn't correct IMHO.

Thanks for posting in our issue tracker.
In order to properly assist you, we need additional information:

  • When does the issue occur?
  • What do you see?
  • What was the expected result?
  • Can you supply us with a stacktrace? (optional)
  • Do you have exact code to reproduce it? Maybe a PHPUnit tests that fails? (optional)

Thanks!

_This is an automated comment, triggered by adding the label status:need more info._

It has been 2 or more weeks with no response on our request for more information.
In order for our issue tracker to be effective, we are closing this issue.

If you want it to be reopened again, feel free to supply us with the requested information.

Thanks!

_This is an automated comment, triggered by adding the label expired._

Was this page helpful?
0 / 5 - 0 ratings