This project is a User Management API developed for TechHive Solutions. The API allows the HR and IT departments to create, update, retrieve, and delete user records efficiently.
- .NET 9.0 SDK
- Visual Studio Code or any other IDE
- Postman or any other API testing tool
- Clone the repository:
git clone https://github.com/bennajah/UserManagementAPI.git
cd UserManagementAPI
- Build the project:
dotnet build
- Run the project:
dotnet run
- URL:
/api/users
- Method:
POST
- Description: Create a new user record.
- Headers:
{ "AuthorizationToken": "your_token_here" }
- Request Body:
{ "firstName": "John", "lastName": "Doe", "email": "[email protected]" }
- URL:
/api/users
- Method:
GET
- Description: Retrieve all user records.
- Headers:
{ "AuthorizationToken": "your_token_here" }
- URL:
/api/users/{id}
- Method:
GET
- Description: Retrieve a user record by ID.
- Headers:
{ "AuthorizationToken": "your_token_here" }
- URL:
/api/users/{id}
- Method:
PUT
- Description: Update an existing user record.
- Headers:
{ "AuthorizationToken": "your_token_here" }
- Request Body:
{ "firstName": "John", "lastName": "Doe", "email": "[email protected]" }
- URL:
/api/users/{id}
- Method:
DELETE
- Description: Delete a user record by ID.
- Headers:
{ "AuthorizationToken": "your_token_here" }
Contributions are welcome! Please fork the repository and create a pull request.
This project is licensed under the MIT License.