This project is a person management system that allows users to perform CRUD (Create, Read, Update, Delete) operations on individuals. It provides functionalities to create, retrieve, edit, and delete person records based on their unique user ID.
-
Create a Person
- Endpoint:
/api
- Method:
POST
- Description: This feature allows users to create a new person record by providing necessary information such as full name, age, address, etc. The system assigns a unique user ID to each person upon creation.
- Endpoint:
-
Get a Person
- Endpoint:
/api/user_id/{{_id}}
- Method:
GET
- Description: This feature allows users to retrieve information about a specific person by providing their user ID. The system returns the person's details, including full name, age, address, etc.
- Endpoint:
-
Edit a Person
- Endpoint:
/api/user_id/{{_id}}
- Method:
PUT
- Description: This feature enables users to update the details of a person by specifying their user ID. Users can modify attributes such as full name, age, address, etc. The system updates the person's information accordingly.
- Endpoint:
-
Delete a Person
- Endpoint:
/api/user_id/{{_id}}
- Method:
DELETE
- Description: This feature allows users to delete a person record from the system by providing their user ID. Once deleted, the person's information is permanently removed from the database.
- Endpoint:
- Programming Language: Javascript
- Framework: Expresss Js
- Database: Mongodb
- API Testing Tool: Postman
- Clone reppository:
git clone https://github.com/PersonAPI
- Add a
.env
file to root of the repository - Install all dependencies:
npm install
- To start
npm run start