Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smoke221/nowdigitaleasy-assignment
https://github.com/smoke221/nowdigitaleasy-assignment
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/smoke221/nowdigitaleasy-assignment
- Owner: Smoke221
- Created: 2023-11-21T07:31:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T08:32:16.000Z (about 1 year ago)
- Last Synced: 2024-03-21T14:44:19.434Z (10 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# User Management API
This is a simple Express.js API for managing user information, including adding, retrieving, updating, and deleting user records.
## Getting Started
```bash
git clone https://github.com/Smoke221/nowdigitaleasy-assignment.git
cd nowdigitaleasy-assignment
npm install
npm start
```## API Endpoints
### Add User
**Method:** `POST`
**URL:** `/user/add`
**Description:** Adds a new user to the system.
**Request Body:**
```json
{
"name": "[User Name]",
"email": "[User Email]",
"password": "[User Password]",
// Other user details
}
```
### All users**Method:** `GET`
**URL:** `/user/fetch`
**Description:** Fetches all the users.
### Get one user
**Method:** `GET`
**URL:** `/user/fetch/:userId`
**Description:** Get details of a single user.
### Delete user by ID
**Method:** `DELETE`
**URL:** `/user/delete/:userId`
**Description:** Deletes a user based on ID.
### Update user by ID
**Method:** `PATCH`
**URL:** `/user/update/:userId`
**Description:** Updates a user based on ID.