|
10 | 10 | | URL naming form |
11 | 11 | |-------------------------------------------------------------------------- |
12 | 12 | | |
13 | | - | Определяет, в каком числе будут представлены ресурсы в строке URL. |
14 | | - | К примеру, plural чтобы использовать URL вида 'test.com/api/posts' |
15 | | - | или singular чтобы использовать URL вида 'test.com/api/post' |
16 | | - | |
17 | | - | Specifies in which form resources in the url string |
18 | | - | In example, 'test.com/api/posts' for plural form |
19 | | - | or 'test.com/api/post' for singular form |
| 13 | + | Specifies resources form in the url string |
| 14 | + | For example, plural for URL like 'test.com/api/posts' |
| 15 | + | or singular for URL like 'test.com/api/post' |
20 | 16 | | |
| 17 | + | Available Settings: singular, plural |
21 | 18 | | |
22 | 19 | */ |
23 | 20 |
|
|
28 | 25 | | Table naming form |
29 | 26 | |-------------------------------------------------------------------------- |
30 | 27 | | |
31 | | - | Определяет, в каком числе будут именоватся ресурсы в БД. |
32 | | - | К примеру, plural чтобы ресурсы именовались в множественном числе: posts, users и т.д. |
33 | | - | или singular чтобы ресурсы именовались в единственном числе: post, user и т.д. |
| 28 | + | Specifies form of table in the database |
| 29 | + | In example, 'posts' for plural form |
| 30 | + | or 'post' for singular form |
34 | 31 | | |
35 | | - | Specifies form of resources in the url string |
36 | | - | In example, 'test.com/api/posts' for plural form |
37 | | - | or 'test.com/api/post' for singular form |
| 32 | + | Available Settings: singular, plural |
38 | 33 | | |
39 | 34 | */ |
40 | 35 |
|
|
49 | 44 | | К примеру, plural чтобы связи ресурсов именовались в множественном числе: posts_id, users_id и т.д. |
50 | 45 | | или singular чтобы связи ресурсов именовались в единственном числе: post_id, user_id и т.д. |
51 | 46 | | |
52 | | - | Defines form of resources in the url string |
53 | | - | In example, 'test.com/api/posts' for plural form |
54 | | - | or 'test.com/api/post' for singular form |
| 47 | + | Specifies form of relation fields in the database |
| 48 | + | In example, 'posts_id' for plural form |
| 49 | + | or 'post_id' for singular form |
| 50 | + | |
| 51 | + | Available Settings: singular, plural |
55 | 52 | | |
56 | 53 | */ |
57 | 54 |
|
|
0 commit comments