A simple CRUD app built using restify
and typescript
.
npm install
npm run start:dev
GET /transactions
POST /transactions
- Payload:
{ type: "credit" | "debit", amount: 100 }
- Payload:
DELETE /transactions/:id
GET /account/current-balance
Make sure to send the header Content-Type: application/json
with each request.