Skip to content

Commit

Permalink
Merge pull request #45 from Cavdy/ft-users-route-endpoint-165332133
Browse files Browse the repository at this point in the history
#165332133 users route endpoint
  • Loading branch information
Cavdy authored Apr 14, 2019
2 parents 1c1a810 + 59f1fc3 commit ff1a1a3
Show file tree
Hide file tree
Showing 33 changed files with 1,445 additions and 198 deletions.
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,32 @@ https://github.com/Cavdy/Banka.git
<tr>
<td>PATCH</td>
<td>api/v1/accounts/accountNumber</td>
<td>Account can be modified</td>
<td>Staff and Admin can be modify account</td>
</tr>
<tr>
<td>DELETE</td>
<td>api/v1/accounts/accountNumber</td>
<td>Account can be modified</td>
<td>Staff and Admin can be delete account</td>
</tr>
<tr>
<td>POST</td>
<td>api/v1/transactions/accountNumber/debit</td>
<td>Staffs can debit users</td>
<td>Staffs and Admin can debit users</td>
</tr>
<tr>
<td>POST</td>
<td>api/v1/transactions/accountNumber/credit</td>
<td>Staffs can credit users</td>
<td>Staffs and Admin can credit users</td>
</tr>
<tr>
<td>GET</td>
<td>api/v1/users</td>
<td>Staffs and Admin can see all users</td>
</tr>
<tr>
<td>DELETE</td>
<td>api/v1/users/:id</td>
<td>Staffs and Admin can delete users</td>
</tr>
</table>

Expand Down
12 changes: 10 additions & 2 deletions api/build/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/build/app.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 22 additions & 10 deletions api/build/controllers/createAccount.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/build/controllers/createAccount.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions api/build/controllers/createStaffs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/build/controllers/createStaffs.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ff1a1a3

Please sign in to comment.