Giter VIP home page Giter VIP logo

cdn-api's Introduction

ASP.NET Core User Management API

This project is an ASP.NET Core Web API designed for managing user data. It demonstrates the implementation of a RESTful API, integrating Dapper as a micro-ORM for efficient data operations. The project covers essential CRUD (Create, Read, Update, Delete) operations.

Features

  • RESTful API endpoints for user management.
  • Integration with SQL Server using Dapper for data access.
  • CRUD operations: Add, Retrieve, Update, and Delete users.
  • Error handling and logging for robustness.

Getting Started

Prerequisites

  • .NET Core 3.1 or later
  • SQL Server (LocalDB or Express)
  • Visual Studio or preferred IDE with C# support
  • Postman for testing API endpoints

Installation

  1. Clone the repository:
    git clone https://github.com/SKSurain/CDN-API.git
  2. Open the solution in Visual Studio or your preferred IDE.
  3. Restore the NuGet packages.
  4. Update the appsettings.json with your SQL Server connection string.
  5. Run the application.

###Usage

Run the application, and use Postman or any API client to test the following endpoints:

GET /api/User: Retrieve all users. GET /api/User/{id}: Retrieve a user by ID. POST /api/User: Create a new user. PUT /api/User/{id}: Update an existing user. DELETE /api/User/{id}: Delete a user.

###Contributing

Contributions to enhance this project are welcome. Please follow these steps to contribute:

Fork the repository. Create a new branch (git checkout -b feature-branch). Make your changes and commit (git commit -am 'Add some feature'). Push to the branch (git push origin feature-branch). Create a new Pull Request.

###License

This project is licensed under the MIT License - see the LICENSE file for details.

###Acknowledgments

ASP.NET Core Team for the framework. Dapper contributors for the ORM. All contributors and reviewers of this project.

cdn-api's People

Contributors

sksurain avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.