=======================
This is a User Management API built using ASP.NET Core and C#. The API provides a set of endpoints for managing users, including creating, reading, updating, and deleting users. The API also includes middleware for logging, error handling, and authentication.
- Create, read, update, and delete users
- Logging middleware to log incoming requests and outgoing responses
- Error handling middleware to catch unhandled exceptions and return consistent error responses
- Authentication middleware to validate tokens from incoming requests and allow access only to users with valid tokens
GET /users: Returns a list of all usersGET /users/{id}: Returns a single user by IDPOST /users: Creates a new userPUT /users/{id}: Updates a single user by IDDELETE /users/{id}: Deletes a single user by ID
- Clone the repository to your local machine
- Open the project in Visual Studio
- Build and run the project
- Use a tool like Postman to send requests to the API endpoints
To authenticate with the API, you need to include a valid token in the Authorization header of your request. The token should be in the format Bearer <token>.
The API logs all incoming requests and outgoing responses using the logging middleware. You can view the logs in the console output.
The API catches unhandled exceptions and returns consistent error responses using the error handling middleware.
This project was completed as part of the Coursera - ASP.NET Core API Development course. You can view my certificate here.
I would like to thank Coursera and the instructors of the ASP.NET Core API Development course for providing the opportunity to learn and complete this project.