Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci skip] Guide: RESTful table formatting #2333

Merged
merged 1 commit into from
Oct 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions user_guide_src/source/incoming/restful.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,19 @@ Presenter/Controller Comparison
This table presents a comparison of the default routes created by `resource()`
and `presenter()` with their corresponding Controller functions.

=========== ========= ====================== ======================== ==================== ====================
Operation Method Controller Route Presenter Route Controller Function Presenter Function
=========== ========= ====================== ======================== ==================== ====================
**New** GET photos/new photos/new `new()` `new()`
**Create** POST photos photos `create()` `create()`
(alias) POST photos/create `create()`
**List** GET photos photos `index()` `index()`
**Show** GET photos/(:segment) photos/(:segment) `show($id = null)` `show($id = null)`
(alias) GET photos/show/(:segment) `show($id = null)`
**Edit** GET photos/(:segment)/edit photos/edit/(:segment) `edit($id = null)` `edit($id = null)`
**Update** PUT/PATCH photos/(:segment) `update($id = null)`
(websafe) POST photos/(:segment) photos/update/(:segment) `update($id = null)` `update($id = null)`
**Remove** GET photos/remove/(:segment) `remove($id = null)`
**Delete** DELETE photos/(:segment) `delete($id = null)`
(websafe) POST photos/delete/(:segment) `delete($id = null)` `delete($id = null)`
=========== ========= ====================== ======================== ==================== ====================
================ ========= ====================== ======================== ====================== ======================
Operation Method Controller Route Presenter Route Controller Function Presenter Function
================ ========= ====================== ======================== ====================== ======================
**New** GET photos/new photos/new ``new()`` ``new()``
**Create** POST photos photos ``create()`` ``create()``
Create (alias) POST photos/create ``create()``
**List** GET photos photos ``index()`` ``index()``
**Show** GET photos/(:segment) photos/(:segment) ``show($id = null)`` ``show($id = null)``
Show (alias) GET photos/show/(:segment) ``show($id = null)``
**Edit** GET photos/(:segment)/edit photos/edit/(:segment) ``edit($id = null)`` ``edit($id = null)``
**Update** PUT/PATCH photos/(:segment) ``update($id = null)``
Update (websafe) POST photos/(:segment) photos/update/(:segment) ``update($id = null)`` ``update($id = null)``
**Remove** GET photos/remove/(:segment) ``remove($id = null)``
**Delete** DELETE photos/(:segment) ``delete($id = null)``
Delete (websafe) POST photos/delete/(:segment) ``delete($id = null)`` ``delete($id = null)``
================ ========= ====================== ======================== ====================== ======================