├── .github └── FUNDING.yml ├── .gitignore ├── AllInOneAspNet.csproj ├── Controllers ├── ClientController.cs ├── IClientController.cs ├── IUserController.cs └── UserController.cs ├── Endpoints ├── ClientEndpoints.cs └── UserEndpoints.cs ├── Exceptions ├── ClientNotFoundException.cs ├── InvalidRequestInfoException.cs ├── UserAllreadyRegisteredException.cs ├── UserNotFoundException.cs └── WrongUserPasswordException.cs ├── Models ├── ClientModels │ ├── ClientModel.cs │ ├── ClientReadModel.cs │ ├── ClientRegisterRequestModel.cs │ └── ClientUpdateRequestModel.cs └── UserModels │ ├── UserLoginRequestModel.cs │ ├── UserModel.cs │ ├── UserReadModel.cs │ └── UserSigninRequestModel.cs ├── Program.cs ├── Properties └── launchSettings.json ├── README.md ├── Repositories ├── ClientRepository.cs ├── Contexts │ └── DatabaseContext.cs ├── IClientRepository.cs ├── IUserRepository.cs └── UserRepository.cs ├── Services └── Jwt │ ├── JwtConsts.cs │ └── JwtService.cs ├── Validators ├── ClientValidators │ ├── ClientRegisterRequestValidator.cs │ └── ClientUpdateRequestValidator.cs └── UserValidators │ ├── UserLoginRequestValidator.cs │ └── UserSigninRequestValidator.cs ├── appsettings.Development.json ├── appsettings.json └── images ├── DI_ASPNET.png ├── EntityWRepositoryPattern.png ├── README.md ├── swaggerUI_authorizeButton.png └── swaggerUI_end.png /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: LuanRoger 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/.gitignore -------------------------------------------------------------------------------- /AllInOneAspNet.csproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/AllInOneAspNet.csproj -------------------------------------------------------------------------------- /Controllers/ClientController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Controllers/ClientController.cs -------------------------------------------------------------------------------- /Controllers/IClientController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Controllers/IClientController.cs -------------------------------------------------------------------------------- /Controllers/IUserController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Controllers/IUserController.cs -------------------------------------------------------------------------------- /Controllers/UserController.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Controllers/UserController.cs -------------------------------------------------------------------------------- /Endpoints/ClientEndpoints.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Endpoints/ClientEndpoints.cs -------------------------------------------------------------------------------- /Endpoints/UserEndpoints.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Endpoints/UserEndpoints.cs -------------------------------------------------------------------------------- /Exceptions/ClientNotFoundException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Exceptions/ClientNotFoundException.cs -------------------------------------------------------------------------------- /Exceptions/InvalidRequestInfoException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Exceptions/InvalidRequestInfoException.cs -------------------------------------------------------------------------------- /Exceptions/UserAllreadyRegisteredException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Exceptions/UserAllreadyRegisteredException.cs -------------------------------------------------------------------------------- /Exceptions/UserNotFoundException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Exceptions/UserNotFoundException.cs -------------------------------------------------------------------------------- /Exceptions/WrongUserPasswordException.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Exceptions/WrongUserPasswordException.cs -------------------------------------------------------------------------------- /Models/ClientModels/ClientModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/ClientModels/ClientModel.cs -------------------------------------------------------------------------------- /Models/ClientModels/ClientReadModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/ClientModels/ClientReadModel.cs -------------------------------------------------------------------------------- /Models/ClientModels/ClientRegisterRequestModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/ClientModels/ClientRegisterRequestModel.cs -------------------------------------------------------------------------------- /Models/ClientModels/ClientUpdateRequestModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/ClientModels/ClientUpdateRequestModel.cs -------------------------------------------------------------------------------- /Models/UserModels/UserLoginRequestModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/UserModels/UserLoginRequestModel.cs -------------------------------------------------------------------------------- /Models/UserModels/UserModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/UserModels/UserModel.cs -------------------------------------------------------------------------------- /Models/UserModels/UserReadModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/UserModels/UserReadModel.cs -------------------------------------------------------------------------------- /Models/UserModels/UserSigninRequestModel.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Models/UserModels/UserSigninRequestModel.cs -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Program.cs -------------------------------------------------------------------------------- /Properties/launchSettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Properties/launchSettings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/README.md -------------------------------------------------------------------------------- /Repositories/ClientRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Repositories/ClientRepository.cs -------------------------------------------------------------------------------- /Repositories/Contexts/DatabaseContext.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Repositories/Contexts/DatabaseContext.cs -------------------------------------------------------------------------------- /Repositories/IClientRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Repositories/IClientRepository.cs -------------------------------------------------------------------------------- /Repositories/IUserRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Repositories/IUserRepository.cs -------------------------------------------------------------------------------- /Repositories/UserRepository.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Repositories/UserRepository.cs -------------------------------------------------------------------------------- /Services/Jwt/JwtConsts.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Services/Jwt/JwtConsts.cs -------------------------------------------------------------------------------- /Services/Jwt/JwtService.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Services/Jwt/JwtService.cs -------------------------------------------------------------------------------- /Validators/ClientValidators/ClientRegisterRequestValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Validators/ClientValidators/ClientRegisterRequestValidator.cs -------------------------------------------------------------------------------- /Validators/ClientValidators/ClientUpdateRequestValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Validators/ClientValidators/ClientUpdateRequestValidator.cs -------------------------------------------------------------------------------- /Validators/UserValidators/UserLoginRequestValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Validators/UserValidators/UserLoginRequestValidator.cs -------------------------------------------------------------------------------- /Validators/UserValidators/UserSigninRequestValidator.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/Validators/UserValidators/UserSigninRequestValidator.cs -------------------------------------------------------------------------------- /appsettings.Development.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/appsettings.Development.json -------------------------------------------------------------------------------- /appsettings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/appsettings.json -------------------------------------------------------------------------------- /images/DI_ASPNET.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/images/DI_ASPNET.png -------------------------------------------------------------------------------- /images/EntityWRepositoryPattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/images/EntityWRepositoryPattern.png -------------------------------------------------------------------------------- /images/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/images/README.md -------------------------------------------------------------------------------- /images/swaggerUI_authorizeButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/images/swaggerUI_authorizeButton.png -------------------------------------------------------------------------------- /images/swaggerUI_end.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LuanRoger/AllInOneAspNet/HEAD/images/swaggerUI_end.png --------------------------------------------------------------------------------