├── .env.example ├── .gitattributes ├── .gitignore ├── .mvn └── wrapper │ └── maven-wrapper.properties ├── .run └── Application.run.xml ├── README.md ├── mvnw ├── mvnw.cmd ├── pom.xml ├── script.sql └── src ├── main ├── java │ └── com │ │ └── codewithmosh │ │ └── store │ │ ├── StoreApplication.java │ │ ├── admin │ │ ├── AdminController.java │ │ └── AdminSecurityRules.java │ │ ├── auth │ │ ├── AuthController.java │ │ ├── AuthSecurityRules.java │ │ ├── AuthService.java │ │ ├── Jwt.java │ │ ├── JwtAuthenticationFilter.java │ │ ├── JwtConfig.java │ │ ├── JwtResponse.java │ │ ├── JwtService.java │ │ ├── LoginRequest.java │ │ ├── LoginResponse.java │ │ └── SecurityConfig.java │ │ ├── carts │ │ ├── AddItemToCartRequest.java │ │ ├── Cart.java │ │ ├── CartController.java │ │ ├── CartDto.java │ │ ├── CartEmptyException.java │ │ ├── CartItem.java │ │ ├── CartItemDto.java │ │ ├── CartMapper.java │ │ ├── CartNotFoundException.java │ │ ├── CartRepository.java │ │ ├── CartSecurityRules.java │ │ ├── CartService.java │ │ ├── ProductDto.java │ │ └── UpdateCartItemRequest.java │ │ ├── common │ │ ├── ErrorDto.java │ │ ├── GlobalExceptionHandler.java │ │ ├── HomeController.java │ │ ├── LoggingFilter.java │ │ ├── SecurityRules.java │ │ └── SwaggerSecurityRules.java │ │ ├── orders │ │ ├── Order.java │ │ ├── OrderController.java │ │ ├── OrderDto.java │ │ ├── OrderItem.java │ │ ├── OrderItemDto.java │ │ ├── OrderMapper.java │ │ ├── OrderNotFoundException.java │ │ ├── OrderRepository.java │ │ ├── OrderService.java │ │ ├── PaymentStatus.java │ │ └── ProductDto.java │ │ ├── payments │ │ ├── CheckoutController.java │ │ ├── CheckoutRequest.java │ │ ├── CheckoutResponse.java │ │ ├── CheckoutService.java │ │ ├── CheckoutSession.java │ │ ├── PaymentException.java │ │ ├── PaymentGateway.java │ │ ├── PaymentResult.java │ │ ├── PaymentSecurityRules.java │ │ ├── StripeConfig.java │ │ ├── StripePaymentGateway.java │ │ └── WebhookRequest.java │ │ ├── products │ │ ├── Category.java │ │ ├── CategoryRepository.java │ │ ├── Product.java │ │ ├── ProductController.java │ │ ├── ProductDto.java │ │ ├── ProductMapper.java │ │ ├── ProductNotFoundException.java │ │ ├── ProductRepository.java │ │ └── ProductSecurityRules.java │ │ └── users │ │ ├── Address.java │ │ ├── AddressRepository.java │ │ ├── ChangePasswordRequest.java │ │ ├── DuplicateUserException.java │ │ ├── Lowercase.java │ │ ├── LowercaseValidator.java │ │ ├── Profile.java │ │ ├── ProfileRepository.java │ │ ├── RegisterUserRequest.java │ │ ├── Role.java │ │ ├── UpdateUserRequest.java │ │ ├── User.java │ │ ├── UserController.java │ │ ├── UserDetailsServiceImpl.java │ │ ├── UserDto.java │ │ ├── UserMapper.java │ │ ├── UserNotFoundException.java │ │ ├── UserRepository.java │ │ ├── UserSecurityRules.java │ │ └── UserService.java └── resources │ ├── application-dev.yaml │ ├── application-prod.yaml │ ├── application.yaml │ ├── db │ └── migration │ │ ├── V1__initial_migration.sql │ │ ├── V2__create_cart_tables.sql │ │ ├── V3__add_role_to_users.sql │ │ ├── V4__add_order_tables.sql │ │ └── V5__populate_database.sql │ └── templates │ └── index.html └── test ├── data └── products.json └── java └── com └── codewithmosh └── store └── StoreApplicationTests.java /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/.env.example -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/.gitignore -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/.mvn/wrapper/maven-wrapper.properties -------------------------------------------------------------------------------- /.run/Application.run.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/.run/Application.run.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/README.md -------------------------------------------------------------------------------- /mvnw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/mvnw -------------------------------------------------------------------------------- /mvnw.cmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/mvnw.cmd -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/pom.xml -------------------------------------------------------------------------------- /script.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/script.sql -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/StoreApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/StoreApplication.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/admin/AdminController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/admin/AdminController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/admin/AdminSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/admin/AdminSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/AuthController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/AuthController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/AuthSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/AuthSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/AuthService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/AuthService.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/Jwt.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/Jwt.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/JwtAuthenticationFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/JwtAuthenticationFilter.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/JwtConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/JwtConfig.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/JwtResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/JwtResponse.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/JwtService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/JwtService.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/LoginRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/LoginRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/LoginResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/LoginResponse.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/auth/SecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/auth/SecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/AddItemToCartRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/AddItemToCartRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/Cart.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/Cart.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartEmptyException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartEmptyException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartItem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartItem.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartItemDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartItemDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartMapper.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/CartService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/CartService.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/ProductDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/ProductDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/carts/UpdateCartItemRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/carts/UpdateCartItemRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/ErrorDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/ErrorDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/GlobalExceptionHandler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/GlobalExceptionHandler.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/HomeController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/HomeController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/LoggingFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/LoggingFilter.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/SecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/SecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/common/SwaggerSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/common/SwaggerSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/Order.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/Order.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderItem.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderItem.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderItemDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderItemDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderMapper.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/OrderService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/OrderService.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/PaymentStatus.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/PaymentStatus.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/orders/ProductDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/orders/ProductDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/CheckoutController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/CheckoutController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/CheckoutRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/CheckoutRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/CheckoutResponse.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/CheckoutResponse.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/CheckoutService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/CheckoutService.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/CheckoutSession.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/CheckoutSession.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/PaymentException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/PaymentException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/PaymentGateway.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/PaymentGateway.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/PaymentResult.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/PaymentResult.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/PaymentSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/PaymentSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/StripeConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/StripeConfig.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/StripePaymentGateway.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/StripePaymentGateway.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/payments/WebhookRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/payments/WebhookRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/Category.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/Category.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/CategoryRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/CategoryRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/Product.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductMapper.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/products/ProductSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/products/ProductSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/Address.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/Address.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/AddressRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/AddressRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/ChangePasswordRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/ChangePasswordRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/DuplicateUserException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/DuplicateUserException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/Lowercase.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/Lowercase.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/LowercaseValidator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/LowercaseValidator.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/Profile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/Profile.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/ProfileRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/ProfileRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/RegisterUserRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/RegisterUserRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/Role.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/Role.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UpdateUserRequest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UpdateUserRequest.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/User.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserController.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserDetailsServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserDetailsServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserDto.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserDto.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserMapper.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserMapper.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserNotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserNotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserSecurityRules.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserSecurityRules.java -------------------------------------------------------------------------------- /src/main/java/com/codewithmosh/store/users/UserService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/java/com/codewithmosh/store/users/UserService.java -------------------------------------------------------------------------------- /src/main/resources/application-dev.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/application-dev.yaml -------------------------------------------------------------------------------- /src/main/resources/application-prod.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/application-prod.yaml -------------------------------------------------------------------------------- /src/main/resources/application.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/application.yaml -------------------------------------------------------------------------------- /src/main/resources/db/migration/V1__initial_migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/db/migration/V1__initial_migration.sql -------------------------------------------------------------------------------- /src/main/resources/db/migration/V2__create_cart_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/db/migration/V2__create_cart_tables.sql -------------------------------------------------------------------------------- /src/main/resources/db/migration/V3__add_role_to_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/db/migration/V3__add_role_to_users.sql -------------------------------------------------------------------------------- /src/main/resources/db/migration/V4__add_order_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/db/migration/V4__add_order_tables.sql -------------------------------------------------------------------------------- /src/main/resources/db/migration/V5__populate_database.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/db/migration/V5__populate_database.sql -------------------------------------------------------------------------------- /src/main/resources/templates/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/main/resources/templates/index.html -------------------------------------------------------------------------------- /src/test/data/products.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/test/data/products.json -------------------------------------------------------------------------------- /src/test/java/com/codewithmosh/store/StoreApplicationTests.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mosh-hamedani/spring-api-finished/HEAD/src/test/java/com/codewithmosh/store/StoreApplicationTests.java --------------------------------------------------------------------------------