Skip to content

bennajah/UserManagementAPI

Repository files navigation

User Management API

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.

Project Setup

Prerequisites

Getting Started

  1. Clone the repository:
git clone https://github.com/bennajah/UserManagementAPI.git
cd UserManagementAPI
  1. Build the project:
dotnet build
  1. Run the project:
dotnet run

API Endpoints

Create User

  • 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]"
    }

Get Users

  • URL: /api/users
  • Method: GET
  • Description: Retrieve all user records.
  • Headers:
    {
      "AuthorizationToken": "your_token_here"
    }

Get User by ID

  • URL: /api/users/{id}
  • Method: GET
  • Description: Retrieve a user record by ID.
  • Headers:
    {
      "AuthorizationToken": "your_token_here"
    }

Update User

  • 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]"
    }

Delete User

  • URL: /api/users/{id}
  • Method: DELETE
  • Description: Delete a user record by ID.
  • Headers:
    {
      "AuthorizationToken": "your_token_here"
    }

Contributing

Contributions are welcome! Please fork the repository and create a pull request.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages