Skip to content

API Docs

J.J. Castro edited this page May 24, 2016 · 2 revisions

Users and authentication

Use case Node API Angular Svc Func
create user POST /api/users create( { name, username, password } )
authenticate POST /api/users/auth login( { username, password } )

Me (user info)

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()

Transactions

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)

Clone this wiki locally