Development

/plugins/sfRestAdminPlugin/README

You must first sign up to be able to contribute.

root/plugins/sfRestAdminPlugin/README

Revision 15250, 3.0 kB (checked in by jerome.etienne, 4 years ago)

- change to new packaging system

Line 
1 = sfRestAdmin Plugin =
2
3 == Overview ==
4 sfRestAdminPlugin provides a crud REST api to a given model. It is in the same spirit as the
5 well known "Admin Generator".
6
7 == Security ==
8 Security mechanisms are typically decided based on many factors, most of them external to this plugin.
9 As a direct consequence, sfRestAdminPlugin doesn't implement security by itself.
10 Nevertheless, a module generated by sfRestAdminPlugin includes a default config/security.yml
11 with is_secure at on. It forces the sfUser to be authenticated to access the generated module.
12 Moreover, the admin generators are usually done in backend which are restricted to http request
13 coming from localhost.
14
15 All in all, sfRestAdminPlugin provides some guidances but ultimatly it is up to you to secure
16 your application.
17
18 == Overview ==
19
20 This plugin will add a date manipulation library to the symfony framework.
21 The library manipulates timestamp values, allowing you to quickly translate a date into another date based on an infinite number of operations.
22 The library contains a base add function, which handles all cases of a single date manipulation.
23 It also contains a large number of other functions based on the add function, which faciliate more complicated operations.
24 Finally, the library contains an instantiable class, which provides an interface hook into the main library allowing chainable date manipulation operations for more readable code.
25
26 == Installation ==
27
28 To install sfRestAdminPlugin:
29 {{{
30 ./symfony plugin-install symfony/sfRestAdminPlugin
31 }}}
32
33 To install from svn:
34 {{{
35 svn co http://svn.symfony-project.com/plugins/sfRestAdminPlugin plugins/sfRestAdminPlugin
36 }}}
37
38 Clear your cache:
39 {{{
40 ./symfony cc
41 }}}
42
43 You're done!
44
45 == Module Generation ==
46
47 To get the list of all available tasks, simply type the following at the root of your
48 project.
49 {{{
50 $ ./symfony list restadmin
51 }}}
52
53 Currently, the only available task is 'init-admin', purposely inspired from the usual
54 'propel:init-admin' and 'doctrine:init-admin'. This task has the same syntax as well
55 to be easier to use.
56
57 Example to a restAdmin generator module '''article''' for a given model '''Article'''
58 , and application '''frontend''':
59 {{{
60 $ ./symfony restadmin:init-admin frontend article Article
61 }}}
62
63 == Rest Usage ==
64 Now that we built the module, how to build the uri to query this REST admin.
65 There is 4 distincts methods based on [http://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD]
66 principle, so Create, Read, Update and Delete. Additionnaly there is a search method
67 to fetch records depending on given criteria.
68
69
70 === Notes ===
71
72 '''NOTE''': It is currently support only doctrine. propel support may be added in the future when time allows.
73
74 == Change Log ==
75   * 0.0.1
76     * added sfDateTimeToolkit
77       * added breakdown function
78     * sfTime
79       * added clear<Time> functions
80       * added set<Time> functions
81     * sfDate
82       * added format parameter to date and datetime functions
83
84 == License ==
85
86 For the full copyright and license information, please view the LICENSE
87 file that was distributed with this source code.
Note: See TracBrowser for help on using the browser.