├── .gitignore ├── LICENSE ├── README.md ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── github │ │ └── damiox │ │ └── ecommerce │ │ ├── ECommerceApp.java │ │ ├── ECommerceAppSecurityConfig.java │ │ ├── api │ │ ├── ExceptionResolver.java │ │ ├── assembler │ │ │ ├── CategoryResourceAssembler.java │ │ │ └── ProductResourceAssembler.java │ │ ├── controller │ │ │ ├── AuthenticationController.java │ │ │ ├── CategoryController.java │ │ │ ├── CategoryProductsController.java │ │ │ ├── CategorySubcategoriesController.java │ │ │ └── ProductController.java │ │ └── resource │ │ │ ├── CategoryResource.java │ │ │ └── ProductResource.java │ │ ├── dao │ │ ├── CategoryRepository.java │ │ ├── ProductRepository.java │ │ └── UserRepository.java │ │ ├── entity │ │ ├── AbstractEntity.java │ │ ├── Category.java │ │ ├── Product.java │ │ └── User.java │ │ ├── exception │ │ └── NotFoundException.java │ │ ├── security │ │ └── JWTAuthenticationFilter.java │ │ ├── service │ │ ├── CategoryService.java │ │ ├── CategoryServiceImpl.java │ │ ├── ProductService.java │ │ ├── ProductServiceImpl.java │ │ ├── SecurityService.java │ │ └── SecurityServiceImpl.java │ │ └── util │ │ └── CurrencyExchangeCommand.java └── resources │ ├── application.properties │ ├── data.sql │ └── schema.sql └── test └── java └── com └── github └── damiox └── ecommerce └── api └── controller ├── AuthenticationControllerTest.java ├── CategoryControllerTest.java ├── CategoryProductsControllerTest.java ├── CategorySubcategoriesControllerTest.java └── ProductControllerTest.java /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | *.iml 3 | target/ 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/README.md -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/pom.xml -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/ECommerceApp.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/ECommerceApp.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/ECommerceAppSecurityConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/ECommerceAppSecurityConfig.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/ExceptionResolver.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/ExceptionResolver.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/assembler/CategoryResourceAssembler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/assembler/CategoryResourceAssembler.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/assembler/ProductResourceAssembler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/assembler/ProductResourceAssembler.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/controller/AuthenticationController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/controller/AuthenticationController.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/controller/CategoryController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/controller/CategoryController.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/controller/CategoryProductsController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/controller/CategoryProductsController.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/controller/CategorySubcategoriesController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/controller/CategorySubcategoriesController.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/controller/ProductController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/controller/ProductController.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/resource/CategoryResource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/resource/CategoryResource.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/api/resource/ProductResource.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/api/resource/ProductResource.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/dao/CategoryRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/dao/CategoryRepository.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/dao/ProductRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/dao/ProductRepository.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/dao/UserRepository.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/dao/UserRepository.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/entity/AbstractEntity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/entity/AbstractEntity.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/entity/Category.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/entity/Category.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/entity/Product.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/entity/Product.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/entity/User.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/entity/User.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/exception/NotFoundException.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/exception/NotFoundException.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/security/JWTAuthenticationFilter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/security/JWTAuthenticationFilter.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/CategoryService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/CategoryService.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/CategoryServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/CategoryServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/ProductService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/ProductService.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/ProductServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/ProductServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/SecurityService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/SecurityService.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/service/SecurityServiceImpl.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/service/SecurityServiceImpl.java -------------------------------------------------------------------------------- /src/main/java/com/github/damiox/ecommerce/util/CurrencyExchangeCommand.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/java/com/github/damiox/ecommerce/util/CurrencyExchangeCommand.java -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/resources/application.properties -------------------------------------------------------------------------------- /src/main/resources/data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/resources/data.sql -------------------------------------------------------------------------------- /src/main/resources/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/main/resources/schema.sql -------------------------------------------------------------------------------- /src/test/java/com/github/damiox/ecommerce/api/controller/AuthenticationControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/test/java/com/github/damiox/ecommerce/api/controller/AuthenticationControllerTest.java -------------------------------------------------------------------------------- /src/test/java/com/github/damiox/ecommerce/api/controller/CategoryControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/test/java/com/github/damiox/ecommerce/api/controller/CategoryControllerTest.java -------------------------------------------------------------------------------- /src/test/java/com/github/damiox/ecommerce/api/controller/CategoryProductsControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/test/java/com/github/damiox/ecommerce/api/controller/CategoryProductsControllerTest.java -------------------------------------------------------------------------------- /src/test/java/com/github/damiox/ecommerce/api/controller/CategorySubcategoriesControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/test/java/com/github/damiox/ecommerce/api/controller/CategorySubcategoriesControllerTest.java -------------------------------------------------------------------------------- /src/test/java/com/github/damiox/ecommerce/api/controller/ProductControllerTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damiox/ecommerce-rest-spring-jpa/HEAD/src/test/java/com/github/damiox/ecommerce/api/controller/ProductControllerTest.java --------------------------------------------------------------------------------