-
Notifications
You must be signed in to change notification settings - Fork 0
API Docs
J.J. Castro edited this page May 24, 2016
·
2 revisions
| Use case | Node API | Angular Svc Func |
|---|---|---|
| create user | POST /api/users | create( { name, username, password } ) |
| authenticate | POST /api/users/auth | login( { username, password } ) |
| Use case | Node API | Angular Svc Func |
|---|---|---|
| user info | GET /api/me | get() |
| update user | PUT /api/me | update( { [name], [username], [password] } ) |
| delete user | DELETE /api/me | delete() |
| Use case | Node API | Angular Svc Func |
|---|---|---|
| list transactions | GET /api/transactions | all() |
| create transaction | POST /api/transactions | create() |
| single transaction | GET /api/transactions/:tran_id | get(id) |
| update a transaction | PUT /api/transactions/:tran_id | update(id) |
| delete transaction | DELETE /api/transactions/:tran_id | delete(id) |