# User Management API Documentation
## Introduction
This API allows you to manage users in your application. You can perform CRUD operations (Create, Read, Update, Delete) on user data stored in a JSON file.
## Base URL
https://rest-api-ten-kappa.vercel.app/
## Endpoints
### Get All Users
GET /users GET /api/users
Returns a list of all users.
#### Example Response
```json
[
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
},
{
"id": 2,
"first_name": "Jane",
"last_name": "Smith",
"email": "[email protected]"
},
...
]
GET /api/users/:id
Returns the user with the specified ID.
id
: The ID of the user to retrieve.
{
"id": 1,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]"
}
POST /api/users
Creates a new user.
{
"first_name": "Alice",
"last_name": "Johnson",
"email": "[email protected]"
}
{
"status": "success",
"id": 101
}
PATCH /api/users/:id
Updates the user with the specified ID.
id
: The ID of the user to update.
{
"first_name": "Alice",
"last_name": "Brown"
}
{
"status": "success",
"updatedUser": {
"id": 101,
"first_name": "Alice",
"last_name": "Brown",
"email": "[email protected]"
}
}
DELETE /api/users/:id
Deletes the user with the specified ID.
id
: The ID of the user to delete.
{
"status": "success",
"deletedUser": {
"id": 101,
"first_name": "Alice",
"last_name": "Brown",
"email": "[email protected]"
}
}
- 404 Not Found: If the requested resource is not found.
- 500 Internal Server Error: If there's a server-side issue.
There's currently no rate limiting implemented on this API.
This API does not require authentication for now.
For any inquiries, please contact [email protected]
.
Feel free to customize this documentation according to your specific requirements or add more details if needed.