A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | AB | AC | AD | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | CONTROLLER | MODEL | VIEW | |||||||||||||||||||||||||||
2 | Path | Method | Action | Django ORM | Sequelize | SQL | Mongoose | MongoDB | Response Contents | View Logic | Links to... | |||||||||||||||||||
3 | /widgets | 1 | GET | index | all() | findAll() | SELECT * | find({}) | find() | Array of Objects [{widgets}] Status: 200 | Loop over array, show each item inserted into page | new, detail, edit*, delete* | ||||||||||||||||||
4 | 2* | POST | create* | save() | create() | INSERT INTO | save(), create() | insert() | No data Status: 201 | Redirect to index | none (redirect) | |||||||||||||||||||
5 | /widgets/:id | 3 | GET | detail/show | get(id=widget_id) | findOne(), findByPk() | SELECT... WHERE... | findOne(), findById() | find({id: 3}) | Single Object {widget} Status:200 | Show one object inserted into page | edit, delete | ||||||||||||||||||
6 | 4* | PUT | update* | save() | update() | UPDATE... SET | updateOne(), findByIdAndUpdate() | update() | No data Status: 204 | Redirect to index or detail | none (redirect) | |||||||||||||||||||
7 | 5 | DELETE | delete* | delete() | destroy() | DELETE | deleteOne(), findByIdAndDelete() | remove() | No data Status: NONE | Redirect to index | none (redirect) | |||||||||||||||||||
8 | /widgets/new | 6(2*) | GET | new | -- | -- | -- | -- | -- | render('new') | Show empty create form | POST /widgets | ||||||||||||||||||
9 | /widgets/:id/edit | 7(4*) | GET | edit | get(id=widget_id) | findOne(), findByPk() | SELECT... WHERE SELECT ONE | findOne(), findById() | find({id: 3}) | Single Object {widget} render('edit') | Show update form populated with data | PUT /widgets/:id | ||||||||||||||||||
10 | ||||||||||||||||||||||||||||||
11 | ||||||||||||||||||||||||||||||
12 | ||||||||||||||||||||||||||||||
13 | ||||||||||||||||||||||||||||||
14 | ||||||||||||||||||||||||||||||
15 | ||||||||||||||||||||||||||||||
16 | ||||||||||||||||||||||||||||||
17 | ||||||||||||||||||||||||||||||
18 | ||||||||||||||||||||||||||||||
19 | ||||||||||||||||||||||||||||||
20 | ||||||||||||||||||||||||||||||
21 | ||||||||||||||||||||||||||||||
22 | ||||||||||||||||||||||||||||||
23 | ||||||||||||||||||||||||||||||
24 | ||||||||||||||||||||||||||||||
25 | ||||||||||||||||||||||||||||||
26 | ||||||||||||||||||||||||||||||
27 | ||||||||||||||||||||||||||||||
28 | ||||||||||||||||||||||||||||||
29 | ||||||||||||||||||||||||||||||
30 | ||||||||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||||||
100 |