Skip to content

Commit f7c97fd

Browse files
committed
Added information about the URL of REST.
An explanation of the #3
1 parent 8af0a5d commit f7c97fd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,21 @@ Demo Client - [http://angularyii2.github.io/](http://angularyii2.github.io/)
3434

3535
Demo Server - [https://yii2-rest-githubjeka.c9.io/rest/web/](https://yii2-rest-githubjeka.c9.io/rest/web/)
3636

37+
Not Found (#404) is OK, because
38+
```php
39+
[
40+
'urlManager' => [
41+
'enablePrettyUrl' => true,
42+
'enableStrictParsing' => true,
43+
'showScriptName' => false,
44+
'rules' => [
45+
['class' => 'yii\rest\UrlRule', 'controller' => ['v1/post', 'v1/comment', 'v2/post']],
46+
'OPTIONS v1/user/login' => 'v1/user/login',
47+
'POST v1/user/login' => 'v1/user/login',
48+
'POST v2/user/login' => 'v2/user/login',
49+
'OPTIONS v2/user/login' => 'v2/user/login',
50+
],
51+
],
52+
]
53+
```
54+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy