File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ # lamda-nodejs-sequelize
2
+ Implement nodejs, sequelize and AWS lamda
3
+
4
+ ```
5
+ // GET: /api/users/2
6
+ // Response:
7
+
8
+ {
9
+ "id": 2,
10
+ "name": "John Pham",
11
+ "createdAt": "2018-03-16T07:48:00.000Z",
12
+ "updatedAt": "2018-03-16T07:48:00.000Z",
13
+ "userItems": [
14
+ {
15
+ "id": 1,
16
+ "content": "hello\n",
17
+ "complete": false,
18
+ "createdAt": "2018-03-16T08:03:04.000Z",
19
+ "updatedAt": "2018-03-16T08:03:04.000Z",
20
+ "userId": 2
21
+ },
22
+ {
23
+ "id": 2,
24
+ "content": "New item",
25
+ "complete": false,
26
+ "createdAt": "2018-03-16T08:03:14.000Z",
27
+ "updatedAt": "2018-03-16T08:03:14.000Z",
28
+ "userId": 2
29
+ },
30
+ {
31
+ "id": 3,
32
+ "content": "New item 2",
33
+ "complete": false,
34
+ "createdAt": "2018-03-16T08:03:16.000Z",
35
+ "updatedAt": "2018-03-16T08:03:16.000Z",
36
+ "userId": 2
37
+ },
38
+ {
39
+ "id": 4,
40
+ "content": "New item 3",
41
+ "complete": false,
42
+ "createdAt": "2018-03-16T08:03:20.000Z",
43
+ "updatedAt": "2018-03-16T08:03:20.000Z",
44
+ "userId": 2
45
+ }
46
+ ]
47
+ }
48
+ ```
You can’t perform that action at this time.
0 commit comments