Welcome to the Hisaab Rakho API. This API is designed to manage financial records and transactions efficiently.
Hisaab Rakho API provides a set of endpoints to manage users, transactions, and financial records. It is built to be simple, secure, and scalable.
To start using the Hisaab Rakho API, follow these steps:
-
Clone the repository:
git clone https://github.com/ammarsaa/hisaab-rakho-api.git
-
Install dependencies:
cd hisaab-rakho-api npm install -g json-server -
Run the server:
json-server --watch database.json --port 3000
-
Create User
POST /users
-
Get All Users
GET /users
-
Get User By ID
GET /users?id={id}
-
Get User By email
GET /user?email={email}
-
Create Transaction
POST /transaction
-
Get All Transactions
GET /transaction
-
Get Transaction By ID
GET /transaction?id={id}
-
Get Transaction By User ID
GET /transaction?user_id={user_id}
This project is licensed under the MIT License. See the LICENSE file for details.