File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ $ iex -S mix phx.server
21
21
# retrieve welcome
22
22
curl -X GET ' http://localhost:4000/api'
23
23
24
+ # -----------------------------------------------------------------------------
25
+
24
26
# create user
25
27
curl -X POST ' http://localhost:4000/api/users' \
26
28
-H ' Content-Type: application/json' \
@@ -65,6 +67,8 @@ curl -X PUT 'http://localhost:4000/api/users/:id' \
65
67
curl -X DELETE ' http://localhost:4000/api/users/:id' \
66
68
-H ' Authorization: :token'
67
69
70
+ # -----------------------------------------------------------------------------
71
+
68
72
# create account (
69
73
# :token - authorization token
70
74
# )
@@ -76,6 +80,8 @@ curl -X POST 'http://localhost:4000/api/accounts' \
76
80
"balance": 100000
77
81
}'
78
82
83
+ # -----------------------------------------------------------------------------
84
+
79
85
# create transaction between accounts (
80
86
# :token - authorization token
81
87
# )
You can’t perform that action at this time.
0 commit comments