Code Monkey home page Code Monkey logo

webapi_cleanarchitecture's Introduction

ASP.NET Core Web API - Clean Architecture


In this repository I want to give a plain starting point at how to build a WebAPI with ASP.NET Core connected with database following the principles of Clean Architecture. This repository contains a controllers which are dealing with Products, Categories and Brands. You can Secured GET/POST/PUT/PATCH and DELETE them.

Technologies:

Default Roles & Credentials:

As soon you build and run your application, default users and roles get added to the database.

Default Roles are as follows.

  • SuperAdmin
  • Admin
  • Moderator
  • User Here are the credentials for the default users.

Email - [email protected] / Password - 123456 Email - [email protected] / Password - 123456

Features:

  • User registration;
  • Email verification
  • User login
  • Password hashing;
  • Role-based authorization;
  • Identity Seeding
  • Database Seeding
  • Assign roles to users who signed up
  • Hide or display different parts of a page based on the user's roles.
  • Endpoints request required authorized access.
  • Login via access token creation;
  • Refresh tokens, to create new access tokens when access tokens expire;
  • Cookies to store refresh tokens in it.
  • Revoking refresh tokens.
  • Secured CRUD operations(Create (POST) - Read (GET) - Update (PUT) - Delete (DELETE))

If you have ideas on how to improve the API or if you want to add a new functionality or fix a bug, please, send a pull request.

webapi_cleanarchitecture's People

Contributors

haithamabass avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

webapi_cleanarchitecture's Issues

refresh token format

cannot authorize refresh token . i will get error 401 Unauthorized . invalid bearer token .
convert your refresh token in jwt bearer format

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.